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/files/file.h" | 7 #include "base/files/file.h" |
8 #include "base/files/file_enumerator.h" | 8 #include "base/files/file_enumerator.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 }; | 255 }; |
256 | 256 |
257 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithLowQuota, QuotaTest) { | 257 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithLowQuota, QuotaTest) { |
258 SimpleTest(GetTestUrl("indexeddb", "quota_test.html")); | 258 SimpleTest(GetTestUrl("indexeddb", "quota_test.html")); |
259 } | 259 } |
260 | 260 |
261 class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest { | 261 class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest { |
262 public: | 262 public: |
263 IndexedDBBrowserTestWithGCExposed() {} | 263 IndexedDBBrowserTestWithGCExposed() {} |
264 | 264 |
265 void SetUpCommandLine(CommandLine* command_line) override { | 265 void SetUpCommandLine(base::CommandLine* command_line) override { |
266 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); | 266 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); |
267 } | 267 } |
268 | 268 |
269 private: | 269 private: |
270 DISALLOW_COPY_AND_ASSIGN(IndexedDBBrowserTestWithGCExposed); | 270 DISALLOW_COPY_AND_ASSIGN(IndexedDBBrowserTestWithGCExposed); |
271 }; | 271 }; |
272 | 272 |
273 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, | 273 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, |
274 DatabaseCallbacksTest) { | 274 DatabaseCallbacksTest) { |
275 SimpleTest(GetTestUrl("indexeddb", "database_callbacks_first.html")); | 275 SimpleTest(GetTestUrl("indexeddb", "database_callbacks_first.html")); |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 GURL("file:///"))); | 730 GURL("file:///"))); |
731 | 731 |
732 base::string16 expected_title16(ASCIIToUTF16("connection closed")); | 732 base::string16 expected_title16(ASCIIToUTF16("connection closed")); |
733 TitleWatcher title_watcher(shell()->web_contents(), expected_title16); | 733 TitleWatcher title_watcher(shell()->web_contents(), expected_title16); |
734 title_watcher.AlsoWaitForTitle(ASCIIToUTF16("connection closed with error")); | 734 title_watcher.AlsoWaitForTitle(ASCIIToUTF16("connection closed with error")); |
735 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle()); | 735 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle()); |
736 } | 736 } |
737 | 737 |
738 class IndexedDBBrowserTestSingleProcess : public IndexedDBBrowserTest { | 738 class IndexedDBBrowserTestSingleProcess : public IndexedDBBrowserTest { |
739 public: | 739 public: |
740 void SetUpCommandLine(CommandLine* command_line) override { | 740 void SetUpCommandLine(base::CommandLine* command_line) override { |
741 command_line->AppendSwitch(switches::kSingleProcess); | 741 command_line->AppendSwitch(switches::kSingleProcess); |
742 } | 742 } |
743 }; | 743 }; |
744 | 744 |
745 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, | 745 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
746 RenderThreadShutdownTest) { | 746 RenderThreadShutdownTest) { |
747 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); | 747 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
748 } | 748 } |
749 | 749 |
750 } // namespace content | 750 } // namespace content |
OLD | NEW |