OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/message_loop/message_loop.h" |
6 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
7 #include "content/browser/web_contents/web_contents_impl.h" | 8 #include "content/browser/web_contents/web_contents_impl.h" |
8 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
9 #include "content/public/test/browser_test_utils.h" | 10 #include "content/public/test/browser_test_utils.h" |
10 #include "content/public/test/content_browser_test.h" | 11 #include "content/public/test/content_browser_test.h" |
11 #include "content/public/test/content_browser_test_utils.h" | 12 #include "content/public/test/content_browser_test_utils.h" |
12 #include "content/public/test/test_utils.h" | 13 #include "content/public/test/test_utils.h" |
13 #include "content/shell/browser/shell.h" | 14 #include "content/shell/browser/shell.h" |
14 #include "content/test/content_browser_test_utils_internal.h" | 15 #include "content/test/content_browser_test_utils_internal.h" |
15 #include "net/dns/mock_host_resolver.h" | 16 #include "net/dns/mock_host_resolver.h" |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 GetNestedFrame()->GetProcess(), | 378 GetNestedFrame()->GetProcess(), |
378 RenderProcessHostWatcher::WATCH_FOR_PROCESS_EXIT); | 379 RenderProcessHostWatcher::WATCH_FOR_PROCESS_EXIT); |
379 GetNestedFrame()->GetProcess()->Shutdown(0, false); | 380 GetNestedFrame()->GetProcess()->Shutdown(0, false); |
380 watcher.Wait(); | 381 watcher.Wait(); |
381 | 382 |
382 // Screen wake lock should be released. | 383 // Screen wake lock should be released. |
383 EXPECT_FALSE(HasWakeLock()); | 384 EXPECT_FALSE(HasWakeLock()); |
384 } | 385 } |
385 | 386 |
386 } // namespace content | 387 } // namespace content |
OLD | NEW |