OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/macros.h" |
5 #include "base/thread_task_runner_handle.h" | 6 #include "base/thread_task_runner_handle.h" |
6 #include "content/public/browser/web_contents.h" | 7 #include "content/public/browser/web_contents.h" |
7 #include "content/public/test/content_browser_test.h" | 8 #include "content/public/test/content_browser_test.h" |
8 #include "content/public/test/content_browser_test_utils.h" | 9 #include "content/public/test/content_browser_test_utils.h" |
9 #include "content/public/test/test_navigation_observer.h" | 10 #include "content/public/test/test_navigation_observer.h" |
10 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
11 #include "content/shell/browser/shell.h" | 12 #include "content/shell/browser/shell.h" |
12 #include "device/battery/battery_status_manager.h" | 13 #include "device/battery/battery_status_manager.h" |
13 #include "device/battery/battery_status_service.h" | 14 #include "device/battery/battery_status_service.h" |
14 | 15 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 battery_manager()->set_battery_status(status); | 147 battery_manager()->set_battery_status(status); |
147 battery_manager()->InvokeUpdateCallback(); | 148 battery_manager()->InvokeUpdateCallback(); |
148 same_tab_observer2.Wait(); | 149 same_tab_observer2.Wait(); |
149 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); | 150 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); |
150 EXPECT_TRUE(battery_manager()->started()); | 151 EXPECT_TRUE(battery_manager()->started()); |
151 } | 152 } |
152 | 153 |
153 } // namespace | 154 } // namespace |
154 | 155 |
155 } // namespace content | 156 } // namespace content |
OLD | NEW |