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

Unified Diff: chrome/browser/protector/mock_protector_service.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/protector/keys.cc ('k') | chrome/browser/protector/mock_protector_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/mock_protector_service.h
diff --git a/chrome/browser/protector/mock_protector_service.h b/chrome/browser/protector/mock_protector_service.h
deleted file mode 100644
index 1babc62c08b6f9441f3d80ab5d5fdedb43d6b794..0000000000000000000000000000000000000000
--- a/chrome/browser/protector/mock_protector_service.h
+++ /dev/null
@@ -1,44 +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.
-
-#ifndef CHROME_BROWSER_PROTECTOR_MOCK_PROTECTOR_SERVICE_H_
-#define CHROME_BROWSER_PROTECTOR_MOCK_PROTECTOR_SERVICE_H_
-
-#include "chrome/browser/protector/protector_service.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace protector {
-
-class MockProtectorService : public ProtectorService {
- public:
- // Creates and returns the MockProtectorService instance associated with
- // |profile|. Should be called before any calls to
- // ProtectorServiceFactory::GetForProfile are made, otherwise a (non-mocked)
- // ProtectorService instance will be associated with |profile|.
- static MockProtectorService* BuildForProfile(Profile* profile);
-
- explicit MockProtectorService(Profile* profile);
- virtual ~MockProtectorService();
-
- MOCK_METHOD1(ShowChange, void(BaseSettingChange*));
- MOCK_CONST_METHOD0(IsShowingChange, bool());
-
- MOCK_METHOD1(DismissChange, void(BaseSettingChange* change));
- MOCK_METHOD2(ApplyChange, void(BaseSettingChange* change, Browser*));
- MOCK_METHOD2(DiscardChange, void(BaseSettingChange* change, Browser*));
-
- MOCK_METHOD2(OpenTab, void(const GURL&, Browser*));
-
- MOCK_METHOD2(OnApplyChange, void(SettingsChangeGlobalError* error, Browser*));
- MOCK_METHOD2(OnDiscardChange, void(SettingsChangeGlobalError* error,
- Browser*));
- MOCK_METHOD1(OnDecisionTimeout, void(SettingsChangeGlobalError* error));
- MOCK_METHOD1(OnRemovedFromProfile, void(SettingsChangeGlobalError* error));
-
- MOCK_METHOD0(Shutdown, void());
-};
-
-} // namespace protector
-
-#endif // CHROME_BROWSER_PROTECTOR_MOCK_PROTECTOR_SERVICE_H_
« no previous file with comments | « chrome/browser/protector/keys.cc ('k') | chrome/browser/protector/mock_protector_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698