Index: content/test/test_navigation_handle.cc |
diff --git a/content/test/test_navigation_handle.cc b/content/test/test_navigation_handle.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9340a9d4ef27c82d7b4061155c5d557e52efb4da |
--- /dev/null |
+++ b/content/test/test_navigation_handle.cc |
@@ -0,0 +1,46 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/test/test_navigation_handle.h" |
+ |
+namespace content { |
+TestNavigationHandle::~TestNavigationHandle() {} |
+ |
+// static |
+TestNavigationHandle* TestNavigationHandle::Create( |
+ const GURL& url, |
+ const GURL& validated_url, |
+ const bool is_main_frame, |
+ NavigatorDelegate* delegate) { |
+ return new TestNavigationHandle(url, validated_url, is_main_frame, delegate); |
+} |
+ |
+NavigationThrottle::ThrottleCheckResult |
+TestNavigationHandle::SimulateWillStartRequest( |
+ bool is_post, |
+ const Referrer& sanitized_referrer, |
+ bool has_user_gesture, |
+ ui::PageTransition transition, |
+ bool is_external_protocol) { |
+ return WillStartRequest(is_post, sanitized_referrer, has_user_gesture, |
+ transition, is_external_protocol); |
+} |
+ |
+NavigationThrottle::ThrottleCheckResult |
+TestNavigationHandle::SimulateWillRedirectRequest( |
+ const GURL& new_url, |
+ const GURL& new_validated_url, |
+ bool new_method_is_post, |
+ const GURL& new_referrer_url, |
+ bool new_is_external_protocol) { |
+ return WillRedirectRequest(new_url, new_validated_url, new_method_is_post, |
+ new_referrer_url, new_is_external_protocol); |
+} |
+ |
+TestNavigationHandle::TestNavigationHandle(const GURL& url, |
+ const GURL& validated_url, |
+ const bool is_main_frame, |
+ NavigatorDelegate* delegate) |
+ : NavigationHandleImpl(url, validated_url, is_main_frame, delegate) {} |
+} // namespace content |