OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/chromeos/status/power_menu_button.h" | 5 #include "chrome/browser/chromeos/status/power_menu_button.h" |
6 | 6 |
7 #include "chrome/browser/browser.h" | |
8 #include "chrome/browser/browser_window.h" | |
9 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" | 7 #include "chrome/browser/chromeos/cros/cros_in_process_browser_test.h" |
10 #include "chrome/browser/chromeos/cros/mock_power_library.h" | 8 #include "chrome/browser/chromeos/cros/mock_power_library.h" |
11 #include "chrome/browser/chromeos/frame/browser_view.h" | 9 #include "chrome/browser/chromeos/frame/browser_view.h" |
12 #include "chrome/browser/chromeos/status/status_area_view.h" | 10 #include "chrome/browser/chromeos/status/status_area_view.h" |
13 #include "chrome/browser/chromeos/view_ids.h" | 11 #include "chrome/browser/chromeos/view_ids.h" |
| 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/browser_window.h" |
14 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 using ::testing::AnyNumber; | 17 using ::testing::AnyNumber; |
18 using ::testing::InvokeWithoutArgs; | 18 using ::testing::InvokeWithoutArgs; |
19 using ::testing::Return; | 19 using ::testing::Return; |
20 using ::testing::ReturnRef; | 20 using ::testing::ReturnRef; |
21 using ::testing::_; | 21 using ::testing::_; |
22 | 22 |
23 class PowerMenuButtonTest : public CrosInProcessBrowserTest { | 23 class PowerMenuButtonTest : public CrosInProcessBrowserTest { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 EXPECT_CALL(*mock_power_library_, battery_percentage()) | 196 EXPECT_CALL(*mock_power_library_, battery_percentage()) |
197 .WillOnce((Return(percent))) | 197 .WillOnce((Return(percent))) |
198 .RetiresOnSaturation(); | 198 .RetiresOnSaturation(); |
199 ASSERT_LT(id, arraysize(kDischargingImages)); | 199 ASSERT_LT(id, arraysize(kDischargingImages)); |
200 EXPECT_EQ(kDischargingImages[id], CallPowerChangedAndGetIconId()); | 200 EXPECT_EQ(kDischargingImages[id], CallPowerChangedAndGetIconId()); |
201 id++; | 201 id++; |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 } // namespace chromeos | 205 } // namespace chromeos |
OLD | NEW |