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

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

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 #include "chrome/browser/protector/mock_setting_change.h"
6
7 #include "base/utf_string_conversions.h"
8 #include "grit/theme_resources.h"
9
10 using ::testing::Return;
11
12 namespace protector {
13
14 MockSettingChange::MockSettingChange() {
15 ON_CALL(*this, GetBadgeIconID()).WillByDefault(Return(IDR_UPDATE_BADGE4));
16 ON_CALL(*this, GetMenuItemIconID()).WillByDefault(Return(IDR_UPDATE_MENU4));
17 ON_CALL(*this, GetBubbleIconID()).WillByDefault(Return(IDR_INPUT_ALERT));
18
19 ON_CALL(*this, GetBubbleTitle()).
20 WillByDefault(Return(UTF8ToUTF16("Title")));
21 ON_CALL(*this, GetBubbleMessage()).
22 WillByDefault(Return(UTF8ToUTF16("Message")));
23 ON_CALL(*this, GetApplyButtonText()).
24 WillByDefault(Return(UTF8ToUTF16("Apply")));
25 ON_CALL(*this, GetDiscardButtonText()).
26 WillByDefault(Return(UTF8ToUTF16("Discard")));
27
28 ON_CALL(*this, GetApplyDisplayName()).
29 WillByDefault(Return(
30 DisplayName(kDefaultNamePriority, UTF8ToUTF16("new settings"))));
31
32 ON_CALL(*this, GetNewSettingURL()).WillByDefault(Return(GURL()));
33 ON_CALL(*this, CanBeMerged()).WillByDefault(Return(false));
34
35 ON_CALL(*this, IsUserVisible()).WillByDefault(Return(true));
36 }
37
38 MockSettingChange::~MockSettingChange() {
39 }
40
41 bool MockSettingChange::Init(Profile* profile) {
42 if (!BaseSettingChange::Init(profile))
43 return false;
44 return MockInit(profile);
45 }
46
47 } // namespace protector
OLDNEW
« no previous file with comments | « chrome/browser/protector/mock_setting_change.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