Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(924)

Side by Side Diff: chrome/browser/prerender/prerender_test_utils.h

Issue 2350813003: NoState Prefetch: CSP test (Closed)
Patch Set: filled in bug Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <functional> 8 #include <functional>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 std::unique_ptr<TestPrerender> PrerenderTestURL( 294 std::unique_ptr<TestPrerender> PrerenderTestURL(
295 const GURL& url, 295 const GURL& url,
296 FinalStatus expected_final_status, 296 FinalStatus expected_final_status,
297 int expected_number_of_loads); 297 int expected_number_of_loads);
298 298
299 ScopedVector<TestPrerender> PrerenderTestURL( 299 ScopedVector<TestPrerender> PrerenderTestURL(
300 const std::string& html_file, 300 const std::string& html_file,
301 const std::vector<FinalStatus>& expected_final_status_queue, 301 const std::vector<FinalStatus>& expected_final_status_queue,
302 int expected_number_of_loads); 302 int expected_number_of_loads);
303 303
304 // Set up an HTTPS server.
304 void UseHttpsSrcServer(); 305 void UseHttpsSrcServer();
305 306
306 // Returns the currently active server. See |UseHttpsSrcServer|. 307 // Returns the currently active server. See |UseHttpsSrcServer|.
307 net::EmbeddedTestServer* src_server(); 308 net::EmbeddedTestServer* src_server();
308 309
309 safe_browsing::TestSafeBrowsingServiceFactory* safe_browsing_factory() const { 310 safe_browsing::TestSafeBrowsingServiceFactory* safe_browsing_factory() const {
310 return safe_browsing_factory_.get(); 311 return safe_browsing_factory_.get();
311 } 312 }
312 313
313 test_utils::FakeSafeBrowsingDatabaseManager* 314 test_utils::FakeSafeBrowsingDatabaseManager*
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 const base::WeakPtr<RequestCounter>& counter); 374 const base::WeakPtr<RequestCounter>& counter);
374 375
375 // Makes |url| respond to requests with the contents of |file|. 376 // Makes |url| respond to requests with the contents of |file|.
376 void CreateMockInterceptorOnIO(const GURL& url, const base::FilePath& file); 377 void CreateMockInterceptorOnIO(const GURL& url, const base::FilePath& file);
377 378
378 } // namespace test_utils 379 } // namespace test_utils
379 380
380 } // namespace prerender 381 } // namespace prerender
381 382
382 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_ 383 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc ('k') | chrome/test/data/prerender/prefetch_meta_csp.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698