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

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: Adressing Lei Zhang's comments 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
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 346d6594498ca0acfa8b333fe50ec50c84dd69ed..99755c901b6de1131b732d505d984ffbcebc7d3d 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

Powered by Google App Engine
This is Rietveld 408576698