| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |