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

Unified Diff: chrome/browser/content_settings/content_settings_mock_observer.h

Issue 1803973002: Content Settings: Add RevocationObserver to measure when permissions are revoked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 4 years, 9 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/content_settings/content_settings_mock_observer.h
diff --git a/chrome/browser/content_settings/content_settings_mock_observer.h b/chrome/browser/content_settings/content_settings_mock_observer.h
index 0d9989f2b259ead1331e994b6a0753cd507e0eb0..5b5d6a2f971e402fe93b8dac5169f1d7639ea187 100644
--- a/chrome/browser/content_settings/content_settings_mock_observer.h
+++ b/chrome/browser/content_settings/content_settings_mock_observer.h
@@ -10,10 +10,12 @@
#include "base/macros.h"
#include "components/content_settings/core/browser/content_settings_observer.h"
#include "testing/gmock/include/gmock/gmock.h"
+#include "url/gurl.h"
namespace content_settings {
-class MockObserver : public Observer {
+class MockObserver : public Observer,
+ public RevocationObserver {
public:
MockObserver();
virtual ~MockObserver();
@@ -23,6 +25,13 @@ class MockObserver : public Observer {
const ContentSettingsPattern& secondary_pattern,
ContentSettingsType content_type,
std::string resource_identifier));
+
+ MOCK_METHOD4(OnContentSettingRevoked,
+ void(const GURL&,
+ const GURL&,
+ ContentSettingsType,
+ std::string));
+
private:
DISALLOW_COPY_AND_ASSIGN(MockObserver);
};

Powered by Google App Engine
This is Rietveld 408576698