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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/test/thread_test_helper.h" | 9 #include "base/test/thread_test_helper.h" |
10 #include "content/browser/web_contents/web_contents_impl.h" | 10 #include "content/browser/web_contents/web_contents_impl.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // a #pass or #fail ref. | 35 // a #pass or #fail ref. |
36 Shell* the_browser = incognito ? CreateOffTheRecordBrowser() : shell(); | 36 Shell* the_browser = incognito ? CreateOffTheRecordBrowser() : shell(); |
37 | 37 |
38 LOG(INFO) << "Navigating to URL and blocking."; | 38 LOG(INFO) << "Navigating to URL and blocking."; |
39 NavigateToURLBlockUntilNavigationsComplete(the_browser, test_url, 2); | 39 NavigateToURLBlockUntilNavigationsComplete(the_browser, test_url, 2); |
40 LOG(INFO) << "Navigation done."; | 40 LOG(INFO) << "Navigation done."; |
41 std::string result = the_browser->web_contents()->GetURL().ref(); | 41 std::string result = the_browser->web_contents()->GetURL().ref(); |
42 if (result != "pass") { | 42 if (result != "pass") { |
43 std::string js_result; | 43 std::string js_result; |
44 ASSERT_TRUE(ExecuteJavaScriptAndExtractString( | 44 ASSERT_TRUE(ExecuteJavaScriptAndExtractString( |
45 the_browser->web_contents()->GetRenderViewHost(), L"", | 45 the_browser->web_contents()->GetRenderViewHost(), |
46 L"window.domAutomationController.send(getLog())", &js_result)); | 46 std::string(), |
| 47 "window.domAutomationController.send(getLog())", |
| 48 &js_result)); |
47 FAIL() << "Failed: " << js_result; | 49 FAIL() << "Failed: " << js_result; |
48 } | 50 } |
49 } | 51 } |
50 }; | 52 }; |
51 | 53 |
52 class FileSystemBrowserTestWithLowQuota : public FileSystemBrowserTest { | 54 class FileSystemBrowserTestWithLowQuota : public FileSystemBrowserTest { |
53 public: | 55 public: |
54 virtual void SetUpOnMainThread() { | 56 virtual void SetUpOnMainThread() { |
55 const int kInitialQuotaKilobytes = 5000; | 57 const int kInitialQuotaKilobytes = 5000; |
56 const int kTemporaryStorageQuotaMaxSize = | 58 const int kTemporaryStorageQuotaMaxSize = |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 353 |
352 IN_PROC_BROWSER_TEST_F(FileSystemLayoutTest, WorkersSimpleTemporarySync) { | 354 IN_PROC_BROWSER_TEST_F(FileSystemLayoutTest, WorkersSimpleTemporarySync) { |
353 RunLayoutTest("workers/simple-temporary-sync.html"); | 355 RunLayoutTest("workers/simple-temporary-sync.html"); |
354 } | 356 } |
355 | 357 |
356 IN_PROC_BROWSER_TEST_F(FileSystemLayoutTest, WorkersSyncOperations) { | 358 IN_PROC_BROWSER_TEST_F(FileSystemLayoutTest, WorkersSyncOperations) { |
357 RunLayoutTest("workers/sync-operations.html"); | 359 RunLayoutTest("workers/sync-operations.html"); |
358 } | 360 } |
359 | 361 |
360 } // namespace content | 362 } // namespace content |
OLD | NEW |