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