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

Unified Diff: components/packed_ct_ev_whitelist/packed_ct_ev_whitelist_unittest.cc

Issue 811353002: Move CT EV white list packaging API from chrome/ to components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed missed nit Created 5 years, 11 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/packed_ct_ev_whitelist/packed_ct_ev_whitelist.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/packed_ct_ev_whitelist/packed_ct_ev_whitelist_unittest.cc
diff --git a/chrome/browser/net/packed_ct_ev_whitelist_unittest.cc b/components/packed_ct_ev_whitelist/packed_ct_ev_whitelist_unittest.cc
similarity index 97%
rename from chrome/browser/net/packed_ct_ev_whitelist_unittest.cc
rename to components/packed_ct_ev_whitelist/packed_ct_ev_whitelist_unittest.cc
index 7877e95dbf78b80ec587a21ff66a8ab6c8c2570b..686eee5c288d7567572638966c7150f08faeccbf 100644
--- a/chrome/browser/net/packed_ct_ev_whitelist_unittest.cc
+++ b/components/packed_ct_ev_whitelist/packed_ct_ev_whitelist_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/net/packed_ct_ev_whitelist.h"
+#include "components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h"
#include <algorithm>
#include <string>
@@ -54,6 +54,8 @@ std::string GetAllWhitelistData() {
} // namespace
+namespace packed_ct_ev_whitelist {
+
TEST(PackedEVCertsWhitelistTest, UncompressFailsForTooShortList) {
// This list does not contain enough bytes even for the first hash.
std::vector<uint64_t> res;
@@ -147,3 +149,5 @@ TEST(PackedEVCertsWhitelistTest, CorrectlyIdentifiesWhitelistIsValid) {
EXPECT_TRUE(whitelist->IsValid());
}
+
+} // namespace packed_ct_ev_whitelist
« no previous file with comments | « components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698