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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "build/build_config.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/shell/browser/shell.h" | 13 #include "content/shell/browser/shell.h" |
13 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
14 #include "net/base/network_change_notifier_factory.h" | 15 #include "net/base/network_change_notifier_factory.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Open the same page in a new window on the same process. | 138 // Open the same page in a new window on the same process. |
138 EXPECT_TRUE( | 139 EXPECT_TRUE( |
139 ExecuteScript(shell()->web_contents(), "window.open(\"net_info.html\")")); | 140 ExecuteScript(shell()->web_contents(), "window.open(\"net_info.html\")")); |
140 | 141 |
141 // The network state should not have reinitialized to what it was when opening | 142 // The network state should not have reinitialized to what it was when opening |
142 // the first window (online). | 143 // the first window (online). |
143 EXPECT_FALSE(RunScriptExtractBool("getOnLine()")); | 144 EXPECT_FALSE(RunScriptExtractBool("getOnLine()")); |
144 } | 145 } |
145 | 146 |
146 } // namespace content | 147 } // namespace content |
OLD | NEW |