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