OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
5 #include <stdint.h> | 6 #include <stdint.h> |
6 | 7 |
7 #include "base/base64.h" | 8 #include "base/base64.h" |
8 #include "base/command_line.h" | 9 #include "base/command_line.h" |
9 #include "base/json/json_string_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
12 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 15 #include "build/build_config.h" |
14 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/net/predictor.h" | 17 #include "chrome/browser/net/predictor.h" |
16 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
19 #include "chrome/test/base/in_process_browser_test.h" | 21 #include "chrome/test/base/in_process_browser_test.h" |
20 #include "chrome/test/base/ui_test_utils.h" | 22 #include "chrome/test/base/ui_test_utils.h" |
21 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
22 #include "content/public/test/test_utils.h" | 24 #include "content/public/test/test_utils.h" |
23 #include "net/base/host_port_pair.h" | 25 #include "net/base/host_port_pair.h" |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 // Second navigation to content with an img. | 455 // Second navigation to content with an img. |
454 std::string img_content = | 456 std::string img_content = |
455 "<img src=\"" + preconnect_url.spec() + "test.gif\">"; | 457 "<img src=\"" + preconnect_url.spec() + "test.gif\">"; |
456 NavigateToDataURLWithContent(img_content); | 458 NavigateToDataURLWithContent(img_content); |
457 connection_listener_->WaitUntilFirstConnectionRead(); | 459 connection_listener_->WaitUntilFirstConnectionRead(); |
458 EXPECT_EQ(2u, connection_listener_->GetAcceptedSocketCount()); | 460 EXPECT_EQ(2u, connection_listener_->GetAcceptedSocketCount()); |
459 EXPECT_EQ(1u, connection_listener_->GetReadSocketCount()); | 461 EXPECT_EQ(1u, connection_listener_->GetReadSocketCount()); |
460 } | 462 } |
461 | 463 |
462 } // namespace chrome_browser_net | 464 } // namespace chrome_browser_net |
OLD | NEW |