Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: components/client_update_protocol/ecdsa_unittest.cc

Issue 1805263002: Move CUP to new component client_update_protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorin review 1 Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/client_update_protocol/ecdsa.cc ('k') | components/components.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/client_update_protocol/ecdsa_unittest.cc
diff --git a/components/update_client/client_update_protocol_ecdsa_unittest.cc b/components/client_update_protocol/ecdsa_unittest.cc
similarity index 97%
rename from components/update_client/client_update_protocol_ecdsa_unittest.cc
rename to components/client_update_protocol/ecdsa_unittest.cc
index eab1f35336b5511438eb01e0e22740512b6e692c..f7bec473d83bc90301d728d1245080a677eaba0a 100644
--- a/components/update_client/client_update_protocol_ecdsa_unittest.cc
+++ b/components/client_update_protocol/ecdsa_unittest.cc
@@ -11,12 +11,12 @@
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
#include "base/strings/stringprintf.h"
-#include "components/update_client/client_update_protocol_ecdsa.h"
+#include "components/client_update_protocol/ecdsa.h"
#include "crypto/random.h"
#include "crypto/secure_util.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace update_client {
+namespace client_update_protocol {
namespace {
@@ -41,7 +41,7 @@ std::string GetPublicKeyForTesting() {
class CupEcdsaTest : public testing::Test {
protected:
void SetUp() override {
- cup_ = ClientUpdateProtocolEcdsa::Create(8, GetPublicKeyForTesting());
+ cup_ = Ecdsa::Create(8, GetPublicKeyForTesting());
ASSERT_TRUE(cup_.get());
}
@@ -50,10 +50,10 @@ class CupEcdsaTest : public testing::Test {
base::StringPrintf("%d:%u", cup_->pub_key_version_, nonce);
}
- ClientUpdateProtocolEcdsa& CUP() { return *cup_.get(); }
+ Ecdsa& CUP() { return *cup_.get(); }
private:
- scoped_ptr<ClientUpdateProtocolEcdsa> cup_;
+ scoped_ptr<Ecdsa> cup_;
};
TEST_F(CupEcdsaTest, SignRequest) {
@@ -295,4 +295,4 @@ TEST_F(CupEcdsaTest, ValidateResponse_TestSigning) {
":2727bc2b3c33feb6800a830f4055901dd87d65a84184c5fbeb3f816db0a243f5"));
}
-} // namespace update_client
+} // namespace client_update_protocol
« no previous file with comments | « components/client_update_protocol/ecdsa.cc ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698