OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PREFS_PREF_OBSERVER_MOCK_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_OBSERVER_MOCK_H_ |
6 #define CHROME_BROWSER_PREFS_PREF_OBSERVER_MOCK_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_OBSERVER_MOCK_H_ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
12 #include "content/public/browser/notification_details.h" | 11 #include "content/public/browser/notification_details.h" |
13 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_source.h" | 13 #include "content/public/browser/notification_source.h" |
15 #include "content/public/browser/notification_types.h" | 14 #include "content/public/browser/notification_types.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
17 | 16 |
(...skipping 27 matching lines...) Expand all Loading... |
45 MOCK_METHOD3(Observe, void(int type, | 44 MOCK_METHOD3(Observe, void(int type, |
46 const content::NotificationSource& source, | 45 const content::NotificationSource& source, |
47 const content::NotificationDetails& details)); | 46 const content::NotificationDetails& details)); |
48 | 47 |
49 void Expect(const PrefService* prefs, | 48 void Expect(const PrefService* prefs, |
50 const std::string& pref_name, | 49 const std::string& pref_name, |
51 const Value* value); | 50 const Value* value); |
52 }; | 51 }; |
53 | 52 |
54 #endif // CHROME_BROWSER_PREFS_PREF_OBSERVER_MOCK_H_ | 53 #endif // CHROME_BROWSER_PREFS_PREF_OBSERVER_MOCK_H_ |
OLD | NEW |