Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / content_settings / mock_settings_observer.h
blob56591cf4163ea26611d8792f9cb2b3f9cf5c9c8b
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_
8 #include "chrome/common/content_settings_types.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
11 #include "testing/gmock/include/gmock/gmock.h"
13 class ContentSettingsPattern;
14 class HostContentSettingsMap;
16 class MockSettingsObserver : public content::NotificationObserver {
17 public:
18 MockSettingsObserver();
19 virtual ~MockSettingsObserver();
21 virtual void Observe(int type,
22 const content::NotificationSource& source,
23 const content::NotificationDetails& details);
25 MOCK_METHOD6(OnContentSettingsChanged,
26 void(HostContentSettingsMap*,
27 ContentSettingsType,
28 bool,
29 const ContentSettingsPattern&,
30 const ContentSettingsPattern&,
31 bool));
33 private:
34 content::NotificationRegistrar registrar_;
37 #endif // CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_