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/callback_list.h" | 5 #include "base/callback_list.h" |
6 #include "base/lazy_instance.h" | 6 #include "base/lazy_instance.h" |
| 7 #include "base/macros.h" |
7 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
| 9 #include "build/build_config.h" |
8 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
9 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
10 #include "content/public/common/content_client.h" | 12 #include "content/public/common/content_client.h" |
11 #include "content/public/common/service_registry.h" | 13 #include "content/public/common/service_registry.h" |
12 #include "content/public/test/content_browser_test.h" | 14 #include "content/public/test/content_browser_test.h" |
13 #include "content/public/test/content_browser_test_utils.h" | 15 #include "content/public/test/content_browser_test_utils.h" |
14 #include "content/public/test/test_navigation_observer.h" | 16 #include "content/public/test/test_navigation_observer.h" |
15 #include "content/public/test/test_utils.h" | 17 #include "content/public/test/test_utils.h" |
16 #include "content/shell/browser/shell.h" | 18 #include "content/shell/browser/shell.h" |
17 #include "content/shell/browser/shell_content_browser_client.h" | 19 #include "content/shell/browser/shell_content_browser_client.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 TestNavigationObserver same_tab_observer2(shell()->web_contents(), 1); | 171 TestNavigationObserver same_tab_observer2(shell()->web_contents(), 1); |
170 status.level = 0.6; | 172 status.level = 0.6; |
171 UpdateBattery(status); | 173 UpdateBattery(status); |
172 same_tab_observer2.Wait(); | 174 same_tab_observer2.Wait(); |
173 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); | 175 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); |
174 } | 176 } |
175 | 177 |
176 } // namespace | 178 } // namespace |
177 | 179 |
178 } // namespace content | 180 } // namespace content |
OLD | NEW |