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 "chrome/browser/prerender/prerender_test_utils.h" | 5 #include "chrome/browser/prerender/prerender_test_utils.h" |
6 | 6 |
| 7 #include <memory> |
| 8 #include <set> |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
7 #include "base/command_line.h" | 12 #include "base/command_line.h" |
8 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/loader/chrome_resource_dispatcher_host_delegate.h" | 14 #include "chrome/browser/loader/chrome_resource_dispatcher_host_delegate.h" |
10 #include "chrome/browser/prerender/prerender_manager.h" | 15 #include "chrome/browser/prerender/prerender_manager.h" |
11 #include "chrome/browser/prerender/prerender_manager_factory.h" | 16 #include "chrome/browser/prerender/prerender_manager_factory.h" |
12 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/safe_browsing/local_database_manager.h" | 18 #include "chrome/browser/safe_browsing/local_database_manager.h" |
14 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 20 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 void CreateMockInterceptorOnIO(const GURL& url, const base::FilePath& file) { | 655 void CreateMockInterceptorOnIO(const GURL& url, const base::FilePath& file) { |
651 CHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); | 656 CHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
652 net::URLRequestFilter::GetInstance()->AddUrlInterceptor( | 657 net::URLRequestFilter::GetInstance()->AddUrlInterceptor( |
653 url, net::URLRequestMockHTTPJob::CreateInterceptorForSingleFile( | 658 url, net::URLRequestMockHTTPJob::CreateInterceptorForSingleFile( |
654 file, content::BrowserThread::GetBlockingPool())); | 659 file, content::BrowserThread::GetBlockingPool())); |
655 } | 660 } |
656 | 661 |
657 } // namespace test_utils | 662 } // namespace test_utils |
658 | 663 |
659 } // namespace prerender | 664 } // namespace prerender |
OLD | NEW |