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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/protector/mock_setting_change.cc
diff --git a/chrome/browser/protector/mock_setting_change.cc b/chrome/browser/protector/mock_setting_change.cc
deleted file mode 100644
index aacd5749b964a5340765ccb91b08a80166055b3e..0000000000000000000000000000000000000000
--- a/chrome/browser/protector/mock_setting_change.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/protector/mock_setting_change.h"
-
-#include "base/utf_string_conversions.h"
-#include "grit/theme_resources.h"
-
-using ::testing::Return;
-
-namespace protector {
-
-MockSettingChange::MockSettingChange() {
- ON_CALL(*this, GetBadgeIconID()).WillByDefault(Return(IDR_UPDATE_BADGE4));
- ON_CALL(*this, GetMenuItemIconID()).WillByDefault(Return(IDR_UPDATE_MENU4));
- ON_CALL(*this, GetBubbleIconID()).WillByDefault(Return(IDR_INPUT_ALERT));
-
- ON_CALL(*this, GetBubbleTitle()).
- WillByDefault(Return(UTF8ToUTF16("Title")));
- ON_CALL(*this, GetBubbleMessage()).
- WillByDefault(Return(UTF8ToUTF16("Message")));
- ON_CALL(*this, GetApplyButtonText()).
- WillByDefault(Return(UTF8ToUTF16("Apply")));
- ON_CALL(*this, GetDiscardButtonText()).
- WillByDefault(Return(UTF8ToUTF16("Discard")));
-
- ON_CALL(*this, GetApplyDisplayName()).
- WillByDefault(Return(
- DisplayName(kDefaultNamePriority, UTF8ToUTF16("new settings"))));
-
- ON_CALL(*this, GetNewSettingURL()).WillByDefault(Return(GURL()));
- ON_CALL(*this, CanBeMerged()).WillByDefault(Return(false));
-
- ON_CALL(*this, IsUserVisible()).WillByDefault(Return(true));
-}
-
-MockSettingChange::~MockSettingChange() {
-}
-
-bool MockSettingChange::Init(Profile* profile) {
- if (!BaseSettingChange::Init(profile))
- return false;
- return MockInit(profile);
-}
-
-} // namespace protector
« 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