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

Unified Diff: components/webcrypto/test/ecdh_unittest.cc

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 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/webcrypto/test/aes_kw_unittest.cc ('k') | components/webcrypto/test/ecdsa_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/test/ecdh_unittest.cc
diff --git a/content/child/webcrypto/test/ecdh_unittest.cc b/components/webcrypto/test/ecdh_unittest.cc
similarity index 96%
rename from content/child/webcrypto/test/ecdh_unittest.cc
rename to components/webcrypto/test/ecdh_unittest.cc
index 1e653ceb945d81f577f56244bb65ea4c5a04769b..bf86f832139447804b234cec07f7cf7ce711e89a 100644
--- a/content/child/webcrypto/test/ecdh_unittest.cc
+++ b/components/webcrypto/test/ecdh_unittest.cc
@@ -3,17 +3,15 @@
// found in the LICENSE file.
#include "base/stl_util.h"
-#include "content/child/webcrypto/algorithm_dispatch.h"
-#include "content/child/webcrypto/crypto_data.h"
-#include "content/child/webcrypto/jwk.h"
-#include "content/child/webcrypto/status.h"
-#include "content/child/webcrypto/test/test_helpers.h"
-#include "content/child/webcrypto/webcrypto_util.h"
+#include "components/webcrypto/algorithm_dispatch.h"
+#include "components/webcrypto/crypto_data.h"
+#include "components/webcrypto/jwk.h"
+#include "components/webcrypto/status.h"
+#include "components/webcrypto/test/test_helpers.h"
+#include "components/webcrypto/webcrypto_util.h"
#include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
#include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
-namespace content {
-
namespace webcrypto {
namespace {
@@ -359,12 +357,9 @@ TEST(WebCryptoEcdhTest, ImportKeyEmptyUsage) {
ASSERT_EQ(Status::ErrorCreateKeyEmptyUsages(),
ImportKey(blink::WebCryptoKeyFormatJwk,
CryptoData(MakeJsonVector(*private_key_json)),
- CreateEcdhImportAlgorithm(curve), true,
- 0, &key));
+ CreateEcdhImportAlgorithm(curve), true, 0, &key));
}
} // namespace
} // namespace webcrypto
-
-} // namespace content
« no previous file with comments | « components/webcrypto/test/aes_kw_unittest.cc ('k') | components/webcrypto/test/ecdsa_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698