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

Side by Side Diff: content/browser/indexed_db/indexed_db_browsertest.cc

Issue 2052633002: Extend the ToRenderFrameHost magic to FrameTreeNode* and Shell* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix induced script bug. Created 4 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 Shell* the_browser = incognito ? CreateOffTheRecordBrowser() : shell(); 86 Shell* the_browser = incognito ? CreateOffTheRecordBrowser() : shell();
87 87
88 VLOG(0) << "Navigating to URL and blocking."; 88 VLOG(0) << "Navigating to URL and blocking.";
89 NavigateToURLBlockUntilNavigationsComplete(the_browser, test_url, 2); 89 NavigateToURLBlockUntilNavigationsComplete(the_browser, test_url, 2);
90 VLOG(0) << "Navigation done."; 90 VLOG(0) << "Navigation done.";
91 std::string result = 91 std::string result =
92 the_browser->web_contents()->GetLastCommittedURL().ref(); 92 the_browser->web_contents()->GetLastCommittedURL().ref();
93 if (result != "pass") { 93 if (result != "pass") {
94 std::string js_result; 94 std::string js_result;
95 ASSERT_TRUE(ExecuteScriptAndExtractString( 95 ASSERT_TRUE(ExecuteScriptAndExtractString(
96 the_browser->web_contents(), 96 the_browser, "window.domAutomationController.send(getLog())",
97 "window.domAutomationController.send(getLog())",
98 &js_result)); 97 &js_result));
99 FAIL() << "Failed: " << js_result; 98 FAIL() << "Failed: " << js_result;
100 } 99 }
101 } 100 }
102 101
103 void NavigateAndWaitForTitle(Shell* shell, 102 void NavigateAndWaitForTitle(Shell* shell,
104 const char* filename, 103 const char* filename,
105 const char* hash, 104 const char* hash,
106 const char* expected_string) { 105 const char* expected_string) {
107 GURL url = GetTestUrl("indexeddb", filename); 106 GURL url = GetTestUrl("indexeddb", filename);
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 command_line->AppendSwitch(switches::kSingleProcess); 853 command_line->AppendSwitch(switches::kSingleProcess);
855 } 854 }
856 }; 855 };
857 856
858 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, 857 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess,
859 RenderThreadShutdownTest) { 858 RenderThreadShutdownTest) {
860 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); 859 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html"));
861 } 860 }
862 861
863 } // namespace content 862 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698