| OLD | NEW |
| (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_ | |
| OLD | NEW |