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

Side by Side Diff: content/test/browser_side_navigation_test_utils.h

Issue 730553002: PlzNavigate: Refactor unit test helper functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the test utils class Created 6 years, 1 month 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
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/browser_side_navigation_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_
6 #define CONTENT_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10
11 namespace content {
12
13 class StreamHandle;
14
15 // Initializes the browser side navigation test utils. Following this call, all
16 // NavigationURLLoader objects created will be TestNavigationURLLoaders instead
17 // of NavigationURLloaderImpls. This should be called before any call in the UI
18 // thread unit tests that will start a navigation (eg.
19 // TestWebContents::NavigateAndCommit).
20 void BrowserSideNavigationSetUp();
21
22 // Tears down the browser side navigation test utils.
23 void BrowserSideNavigationTearDown();
24
25 // Returns an empty stream. Used when faking a navigation commit notification
26 // from the IO thread with a TestNavigationURLLoader.
27 scoped_ptr<StreamHandle> MakeEmptyStream();
28
29 void EnableBrowserSideNavigation();
30
31 } // namespace content
32
33 #endif // CONTENT_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/browser_side_navigation_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698