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() {} |