Browse Source

Tests: ensure GPL3.0 License Header

pull/8/head
heck 4 years ago
parent
commit
364bc2214d
  1. 7
      test/framework.cc
  2. 1
      test/framework.hh
  3. 3
      test/test_ensure_passphrase.cc
  4. 3
      test/test_leave_device_group.cc
  5. 3
      test/test_library.cc
  6. 3
      test/test_message_cache.cc
  7. 3
      test/test_passphrase_cache.cc
  8. 3
      test/test_semaphore.cc

7
test/framework.cc

@ -1,5 +1,7 @@
#include "framework.hh"
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include "framework.hh"
#include <iostream>
#include <fstream>
#include <sstream>
@ -83,7 +85,10 @@ namespace pEp {
ifstream f(filename, ifstream::in);
string key{ istreambuf_iterator<char>(f), istreambuf_iterator<char>() };
::identity_list *il = NULL;
cout << key.c_str() << endl;
cout << key.length() << endl;
::PEP_STATUS status = ::import_key(session(), key.c_str(), key.length(), &il);
throw_status(status);
assert(status == PEP_KEY_IMPORTED);
::free_identity_list(il);
}

1
test/framework.hh

@ -1,5 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#ifndef LIBPEPADAPTER_FRAMEWORK_HH
#define LIBPEPADAPTER_FRAMEWORK_HH

3
test/test_ensure_passphrase.cc

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include <iostream>
#include <fstream>
#include <sstream>

3
test/test_leave_device_group.cc

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include <iostream>
#include <vector>
#include <unistd.h>

3
test/test_library.cc

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include "pc_container.hh"
#include <cstdio>
#include <cstdlib>

3
test/test_message_cache.cc

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include "framework.hh"
#include <iostream>
#include <cassert>

3
test/test_passphrase_cache.cc

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include "framework.hh"
#include <iostream>

3
test/test_semaphore.cc

@ -1,3 +1,6 @@
// This file is under GNU General Public License 3.0
// see LICENSE.txt
#include <iostream>
#include <thread>
#include <unistd.h>

Loading…
Cancel
Save