| 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
| 10 #include "content/public/test/content_browser_test.h" | 10 #include "content/public/test/content_browser_test.h" |
| 11 #include "content/public/test/content_browser_test_utils.h" | 11 #include "content/public/test/content_browser_test_utils.h" |
| 12 #include "content/public/test/test_navigation_observer.h" | 12 #include "content/public/test/test_navigation_observer.h" |
| 13 #include "content/public/test/test_utils.h" | 13 #include "content/public/test/test_utils.h" |
| 14 #include "content/shell/browser/shell.h" | 14 #include "content/shell/browser/shell.h" |
| 15 #include "device/battery/battery_status_manager.h" | 15 #include "device/battery/battery_status_manager.h" |
| 16 #include "device/battery/battery_status_service.h" | 16 #include "device/battery/battery_status_service.h" |
| 17 | 17 |
| 18 // These tests run against the default implementation of the BatteryMonitor | 18 // These tests run against the default implementation of the BatteryMonitor |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 battery_manager()->set_battery_status(status); | 149 battery_manager()->set_battery_status(status); |
| 150 battery_manager()->InvokeUpdateCallback(); | 150 battery_manager()->InvokeUpdateCallback(); |
| 151 same_tab_observer2.Wait(); | 151 same_tab_observer2.Wait(); |
| 152 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); | 152 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); |
| 153 EXPECT_TRUE(battery_manager()->started()); | 153 EXPECT_TRUE(battery_manager()->started()); |
| 154 } | 154 } |
| 155 | 155 |
| 156 } // namespace | 156 } // namespace |
| 157 | 157 |
| 158 } // namespace content | 158 } // namespace content |
| OLD | NEW |