forked from monero-project/kovri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: update namespaces and organization
Updated against previous commits References monero-project#339 monero-project#98
- Loading branch information
Showing
14 changed files
with
132 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,9 @@ | |
#include <string> | ||
#include <vector> | ||
|
||
#include "reseed.h" | ||
#include "crypto/util/x509.h" | ||
#include "client/reseed.h" | ||
|
||
#include "core/crypto/util/x509.h" | ||
|
||
BOOST_AUTO_TEST_SUITE(SU3); | ||
|
||
|
@@ -216,8 +217,8 @@ struct SU3Fixture { | |
}; | ||
|
||
// Map the signature for verification | ||
kovri::crypto::util::PublicKey pubkey = signing_key.data(); | ||
std::map<std::string, kovri::crypto::util::PublicKey> x509 { | ||
kovri::core::PublicKey pubkey = signing_key.data(); | ||
std::map<std::string, kovri::core::PublicKey> x509 { | ||
{ "[email protected]", pubkey }, | ||
}; | ||
}; | ||
|
@@ -243,7 +244,7 @@ class SU3FixtureImpl : SU3Fixture { | |
std::vector<unsigned char> bad_bytes = good_bytes; | ||
std::fill_n(bad_bytes.begin() + offset, amount, byte); | ||
std::string str(bad_bytes.begin(), bad_bytes.end()); | ||
kovri::data::SU3 su3(str, x509); | ||
kovri::client::SU3 su3(str, x509); | ||
return su3.SU3Impl(); | ||
} | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.