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

Unified Diff: content/test/content_browser_test_utils_internal.cc

Issue 248963007: Perform navigation policy check on UI thread for --site-per-process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/content_browser_test_utils_internal.h ('k') | content/test/test_frame_navigation_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_browser_test_utils_internal.cc
diff --git a/content/test/content_browser_test_utils_internal.cc b/content/test/content_browser_test_utils_internal.cc
new file mode 100644
index 0000000000000000000000000000000000000000..be503b7e83d1b5a0e55ce499ec62bc8e0b8b8e6a
--- /dev/null
+++ b/content/test/content_browser_test_utils_internal.cc
@@ -0,0 +1,23 @@
+// Copyright 2014 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/content_browser_test_utils_internal.h"
+
+#include "content/browser/frame_host/frame_tree_node.h"
+#include "content/browser/frame_host/navigator.h"
+#include "content/test/test_frame_navigation_observer.h"
+#include "url/gurl.h"
+
+namespace content {
+
+void NavigateFrameToURL(FrameTreeNode* node, const GURL& url) {
+ TestFrameNavigationObserver observer(node);
+ NavigationController::LoadURLParams params(url);
+ params.transition_type = PageTransitionFromInt(PAGE_TRANSITION_LINK);
+ params.frame_tree_node_id = node->frame_tree_node_id();
+ node->navigator()->GetController()->LoadURLWithParams(params);
+ observer.Wait();
+}
+
+} // namespace content
« no previous file with comments | « content/test/content_browser_test_utils_internal.h ('k') | content/test/test_frame_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698