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

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

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_
6 #define CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_
7
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/protector/base_setting_change.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace protector {
13
14 class MockSettingChange : public BaseSettingChange {
15 public:
16 MockSettingChange();
17 virtual ~MockSettingChange();
18
19 virtual bool Init(Profile* profile) OVERRIDE;
20
21 MOCK_METHOD1(MockInit, bool(Profile* profile));
22 MOCK_METHOD1(InitWhenDisabled, void(Profile*));
23 MOCK_METHOD1(Apply, void(Browser*));
24 MOCK_METHOD1(Discard, void(Browser*));
25 MOCK_METHOD0(Timeout, void());
26
27 MOCK_CONST_METHOD0(GetBadgeIconID, int());
28 MOCK_CONST_METHOD0(GetMenuItemIconID, int());
29 MOCK_CONST_METHOD0(GetBubbleIconID, int());
30
31 MOCK_CONST_METHOD0(GetBubbleTitle, string16());
32 MOCK_CONST_METHOD0(GetBubbleMessage, string16());
33 MOCK_CONST_METHOD0(GetApplyButtonText, string16());
34 MOCK_CONST_METHOD0(GetDiscardButtonText, string16());
35
36 MOCK_CONST_METHOD0(GetApplyDisplayName, DisplayName());
37
38 MOCK_CONST_METHOD0(GetNewSettingURL, GURL());
39 MOCK_CONST_METHOD0(CanBeMerged, bool());
40
41 MOCK_CONST_METHOD0(IsUserVisible, bool());
42 };
43
44 } // namespace protector
45
46 #endif // CHROME_BROWSER_PROTECTOR_MOCK_SETTING_CHANGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/protector/mock_protector_service.cc ('k') | chrome/browser/protector/mock_setting_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698