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

Side by Side Diff: chrome/browser/protector/mock_setting_change.h

Issue 10065016: [protector] Refactoring of --no-protector code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROTECTOR_MOCK_SETTING_CHANGE_H_ 5 #ifndef CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_
6 #define CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_ 6 #define CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/protector/base_setting_change.h" 10 #include "chrome/browser/protector/base_setting_change.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace protector { 13 namespace protector {
14 14
15 class MockSettingChange : public BaseSettingChange { 15 class MockSettingChange : public BaseSettingChange {
16 public: 16 public:
17 MockSettingChange(); 17 MockSettingChange();
18 virtual ~MockSettingChange(); 18 virtual ~MockSettingChange();
19 19
20 virtual bool Init(Profile* profile) OVERRIDE; 20 virtual bool Init(Profile* profile) OVERRIDE;
21 21
22 MOCK_METHOD1(MockInit, bool(Profile* profile)); 22 MOCK_METHOD1(MockInit, bool(Profile* profile));
23 MOCK_METHOD1(InitWhenDisabled, void(Profile*));
23 MOCK_METHOD1(Apply, void(Browser*)); 24 MOCK_METHOD1(Apply, void(Browser*));
24 MOCK_METHOD1(Discard, void(Browser*)); 25 MOCK_METHOD1(Discard, void(Browser*));
25 MOCK_METHOD0(Timeout, void()); 26 MOCK_METHOD0(Timeout, void());
26 27
27 MOCK_CONST_METHOD0(GetBadgeIconID, int()); 28 MOCK_CONST_METHOD0(GetBadgeIconID, int());
28 MOCK_CONST_METHOD0(GetMenuItemIconID, int()); 29 MOCK_CONST_METHOD0(GetMenuItemIconID, int());
29 MOCK_CONST_METHOD0(GetBubbleIconID, int()); 30 MOCK_CONST_METHOD0(GetBubbleIconID, int());
30 31
31 MOCK_CONST_METHOD0(GetBubbleTitle, string16()); 32 MOCK_CONST_METHOD0(GetBubbleTitle, string16());
32 MOCK_CONST_METHOD0(GetBubbleMessage, string16()); 33 MOCK_CONST_METHOD0(GetBubbleMessage, string16());
33 MOCK_CONST_METHOD0(GetApplyButtonText, string16()); 34 MOCK_CONST_METHOD0(GetApplyButtonText, string16());
34 MOCK_CONST_METHOD0(GetDiscardButtonText, string16()); 35 MOCK_CONST_METHOD0(GetDiscardButtonText, string16());
35 36
36 MOCK_CONST_METHOD0(GetApplyDisplayName, DisplayName()); 37 MOCK_CONST_METHOD0(GetApplyDisplayName, DisplayName());
37 38
38 MOCK_CONST_METHOD0(GetNewSettingURL, GURL()); 39 MOCK_CONST_METHOD0(GetNewSettingURL, GURL());
39 MOCK_CONST_METHOD0(CanBeMerged, bool()); 40 MOCK_CONST_METHOD0(CanBeMerged, bool());
40 }; 41 };
41 42
42 } // namespace protector 43 } // namespace protector
43 44
44 #endif // CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_ 45 #endif // CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/protector/histograms.h ('k') | chrome/browser/protector/prefs_backup_invalid_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698