OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/common/content_settings_types.h" |
| 10 #include "content/common/notification_observer.h" |
| 11 #include "content/common/notification_registrar.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 |
| 14 class ContentSettingsPattern; |
| 15 class HostContentSettingsMap; |
| 16 |
| 17 class MockSettingsObserver : public NotificationObserver { |
| 18 public: |
| 19 MockSettingsObserver(); |
| 20 virtual ~MockSettingsObserver(); |
| 21 |
| 22 virtual void Observe(NotificationType type, |
| 23 const NotificationSource& source, |
| 24 const NotificationDetails& details); |
| 25 |
| 26 MOCK_METHOD5(OnContentSettingsChanged, |
| 27 void(HostContentSettingsMap*, |
| 28 ContentSettingsType, |
| 29 bool, |
| 30 const ContentSettingsPattern&, |
| 31 bool)); |
| 32 |
| 33 private: |
| 34 NotificationRegistrar registrar_; |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_CONTENT_SETTINGS_MOCK_SETTINGS_OBSERVER_H_ |
OLD | NEW |