| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CONTENT_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_ |
| 6 #define CONTENT_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_ | 6 #define CONTENT_PUBLIC_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 class StreamHandle; | 14 class StreamHandle; |
| 15 | 15 |
| 16 // Initializes the browser side navigation test utils. Following this call, all | 16 // Initializes the browser side navigation test utils. Following this call, all |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 std::unique_ptr<StreamHandle> MakeEmptyStream(); | 28 std::unique_ptr<StreamHandle> MakeEmptyStream(); |
| 29 | 29 |
| 30 // If a test needs to run with browser side navigation enabled, call this | 30 // If a test needs to run with browser side navigation enabled, call this |
| 31 // function before doing any setup. In particular, for tests inheriting from | 31 // function before doing any setup. In particular, for tests inheriting from |
| 32 // RenderViewHostTestHarness, call this function before calling | 32 // RenderViewHostTestHarness, call this function before calling |
| 33 // RenderViewHostTestHarness::SetUp. | 33 // RenderViewHostTestHarness::SetUp. |
| 34 void EnableBrowserSideNavigation(); | 34 void EnableBrowserSideNavigation(); |
| 35 | 35 |
| 36 } // namespace content | 36 } // namespace content |
| 37 | 37 |
| 38 #endif // CONTENT_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_ | 38 #endif // CONTENT_PUBLIC_TEST_BROWSER_SIDE_NAVIGATION_TEST_UTILS_H_ |
| OLD | NEW |