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

Unified Diff: net/ssl/default_channel_id_store_unittest.cc

Issue 381073002: Move sqlite_channel_id_store from chrome/browser/net to net/extras. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DeleteAll(server_identifiers) method. Created 6 years, 4 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: net/ssl/default_channel_id_store_unittest.cc
diff --git a/net/ssl/default_channel_id_store_unittest.cc b/net/ssl/default_channel_id_store_unittest.cc
index b1fe87329a3fe6f96756919c5fd6ba976844e3af..92a91714164086800f02b1f666297e39834bc84c 100644
--- a/net/ssl/default_channel_id_store_unittest.cc
+++ b/net/ssl/default_channel_id_store_unittest.cc
@@ -74,6 +74,8 @@ class MockPersistentStore
const DefaultChannelIDStore::ChannelID& channel_id) OVERRIDE;
virtual void DeleteChannelID(
const DefaultChannelIDStore::ChannelID& channel_id) OVERRIDE;
+ virtual void DeleteAll(
+ const std::vector<std::string>& server_identifiers) OVERRIDE;
virtual void SetForceKeepSessionState() OVERRIDE;
protected:
@@ -112,6 +114,15 @@ void MockPersistentStore::DeleteChannelID(
channel_ids_.erase(channel_id.server_identifier());
}
+void MockPersistentStore::DeleteAll(
+ const std::vector<std::string>& server_identifiers) {
+ for (std::vector<std::string>::const_iterator it = server_identifiers.begin();
+ it != server_identifiers.end();
+ ++it) {
+ channel_ids_.erase(*it);
+ }
+}
+
void MockPersistentStore::SetForceKeepSessionState() {}
MockPersistentStore::~MockPersistentStore() {}
« net/extras/sqlite/sqlite_channel_id_store.cc ('K') | « net/ssl/default_channel_id_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698