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

Unified Diff: net/http/mock_http_cache.h

Issue 8670009: SSL Host info: Make sure that we can update certificate chains in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « net/http/disk_cache_based_ssl_host_info_unittest.cc ('k') | net/http/mock_http_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/mock_http_cache.h
===================================================================
--- net/http/mock_http_cache.h (revision 111217)
+++ net/http/mock_http_cache.h (working copy)
@@ -115,10 +115,10 @@
std::vector<std::pair<std::string, std::string> >* stats) OVERRIDE;
virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
- // returns number of times a cache entry was successfully opened
+ // Returns number of times a cache entry was successfully opened.
int open_count() const { return open_count_; }
- // returns number of times a cache entry was successfully created
+ // Returns number of times a cache entry was successfully created.
int create_count() const { return create_count_; }
// Fail any subsequent CreateEntry and OpenEntry.
@@ -127,6 +127,9 @@
// Return entries that fail some of their requests.
void set_soft_failures(bool value) { soft_failures_ = value; }
+ // Makes sure that CreateEntry is not called twice for a given key.
+ void set_double_create_check(bool value) { double_create_check_ = value; }
+
void ReleaseAll();
private:
@@ -140,6 +143,7 @@
int create_count_;
bool fail_requests_;
bool soft_failures_;
+ bool double_create_check_;
};
class MockBackendFactory : public net::HttpCache::BackendFactory {
« no previous file with comments | « net/http/disk_cache_based_ssl_host_info_unittest.cc ('k') | net/http/mock_http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698