OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ |
7 | 7 |
| 8 #include <deque> |
8 #include <functional> | 9 #include <functional> |
| 10 #include <memory> |
| 11 #include <set> |
| 12 #include <string> |
| 13 #include <unordered_map> |
| 14 #include <vector> |
9 | 15 |
10 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
11 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
12 #include "base/test/histogram_tester.h" | 18 #include "base/test/histogram_tester.h" |
13 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 19 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
14 #include "chrome/browser/prerender/prerender_contents.h" | 20 #include "chrome/browser/prerender/prerender_contents.h" |
15 #include "chrome/browser/prerender/prerender_manager.h" | 21 #include "chrome/browser/prerender/prerender_manager.h" |
16 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h" | 22 #include "chrome/browser/safe_browsing/test_safe_browsing_service.h" |
17 #include "chrome/test/base/in_process_browser_test.h" | 23 #include "chrome/test/base/in_process_browser_test.h" |
18 #include "components/safe_browsing_db/test_database_manager.h" | 24 #include "components/safe_browsing_db/test_database_manager.h" |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 const base::WeakPtr<RequestCounter>& counter); | 380 const base::WeakPtr<RequestCounter>& counter); |
375 | 381 |
376 // Makes |url| respond to requests with the contents of |file|. | 382 // Makes |url| respond to requests with the contents of |file|. |
377 void CreateMockInterceptorOnIO(const GURL& url, const base::FilePath& file); | 383 void CreateMockInterceptorOnIO(const GURL& url, const base::FilePath& file); |
378 | 384 |
379 } // namespace test_utils | 385 } // namespace test_utils |
380 | 386 |
381 } // namespace prerender | 387 } // namespace prerender |
382 | 388 |
383 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ | 389 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ |
OLD | NEW |