OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/protector/mock_setting_change.h" | 5 #include "chrome/browser/protector/mock_setting_change.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "grit/theme_resources.h" | 8 #include "grit/theme_resources.h" |
9 #include "grit/theme_resources_standard.h" | |
10 | 9 |
11 using ::testing::Return; | 10 using ::testing::Return; |
12 | 11 |
13 namespace protector { | 12 namespace protector { |
14 | 13 |
15 MockSettingChange::MockSettingChange() { | 14 MockSettingChange::MockSettingChange() { |
16 ON_CALL(*this, GetBadgeIconID()).WillByDefault(Return(IDR_UPDATE_BADGE4)); | 15 ON_CALL(*this, GetBadgeIconID()).WillByDefault(Return(IDR_UPDATE_BADGE4)); |
17 ON_CALL(*this, GetMenuItemIconID()).WillByDefault(Return(IDR_UPDATE_MENU4)); | 16 ON_CALL(*this, GetMenuItemIconID()).WillByDefault(Return(IDR_UPDATE_MENU4)); |
18 ON_CALL(*this, GetBubbleIconID()).WillByDefault(Return(IDR_INPUT_ALERT)); | 17 ON_CALL(*this, GetBubbleIconID()).WillByDefault(Return(IDR_INPUT_ALERT)); |
19 | 18 |
(...skipping 19 matching lines...) Expand all Loading... |
39 MockSettingChange::~MockSettingChange() { | 38 MockSettingChange::~MockSettingChange() { |
40 } | 39 } |
41 | 40 |
42 bool MockSettingChange::Init(Profile* profile) { | 41 bool MockSettingChange::Init(Profile* profile) { |
43 if (!BaseSettingChange::Init(profile)) | 42 if (!BaseSettingChange::Init(profile)) |
44 return false; | 43 return false; |
45 return MockInit(profile); | 44 return MockInit(profile); |
46 } | 45 } |
47 | 46 |
48 } // namespace protector | 47 } // namespace protector |
OLD | NEW |