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

Unified Diff: chrome/browser/browsing_data/mock_browsing_data_server_bound_cert_helper.h

Issue 356713005: Rename ServerBoundCert => ChannelID to reflect the current name (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cookies_list.js Created 6 years, 5 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: chrome/browser/browsing_data/mock_browsing_data_server_bound_cert_helper.h
diff --git a/chrome/browser/browsing_data/mock_browsing_data_server_bound_cert_helper.h b/chrome/browser/browsing_data/mock_browsing_data_server_bound_cert_helper.h
deleted file mode 100644
index 33edee34b2f7a65b278099f45b36f6e5b20e4e9f..0000000000000000000000000000000000000000
--- a/chrome/browser/browsing_data/mock_browsing_data_server_bound_cert_helper.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVER_BOUND_CERT_HELPER_H_
-#define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVER_BOUND_CERT_HELPER_H_
-
-#include <map>
-#include <string>
-
-#include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h"
-
-// Mock for BrowsingDataServerBoundCertHelper.
-class MockBrowsingDataServerBoundCertHelper
- : public BrowsingDataServerBoundCertHelper {
- public:
- explicit MockBrowsingDataServerBoundCertHelper();
-
- // BrowsingDataServerBoundCertHelper methods.
- virtual void StartFetching(const FetchResultCallback& callback) OVERRIDE;
- virtual void DeleteServerBoundCert(const std::string& server_id) OVERRIDE;
-
- // Adds a server_bound_cert sample.
- void AddServerBoundCertSample(const std::string& server_id);
-
- // Notifies the callback.
- void Notify();
-
- // Marks all server_bound_certs as existing.
- void Reset();
-
- // Returns true if all server_bound_certs since the last Reset() invocation
- // were deleted.
- bool AllDeleted();
-
- private:
- virtual ~MockBrowsingDataServerBoundCertHelper();
-
- FetchResultCallback callback_;
-
- net::ServerBoundCertStore::ServerBoundCertList server_bound_cert_list_;
-
- // Stores which server_bound_certs exist.
- std::map<const std::string, bool> server_bound_certs_;
-};
-
-#endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_SERVER_BOUND_CERT_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698