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_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 FROM_HERE, | 424 FROM_HERE, |
425 base::Bind(&IndexedDBContextImpl::DeleteForOrigin, | 425 base::Bind(&IndexedDBContextImpl::DeleteForOrigin, |
426 GetContext(), | 426 GetContext(), |
427 GURL("file:///"))); | 427 GURL("file:///"))); |
428 | 428 |
429 string16 expected_title16(ASCIIToUTF16("connection closed")); | 429 string16 expected_title16(ASCIIToUTF16("connection closed")); |
430 TitleWatcher title_watcher(shell()->web_contents(), expected_title16); | 430 TitleWatcher title_watcher(shell()->web_contents(), expected_title16); |
431 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle()); | 431 EXPECT_EQ(expected_title16, title_watcher.WaitAndGetTitle()); |
432 } | 432 } |
433 | 433 |
| 434 class IndexedDBBrowserTestSingleProcess : public IndexedDBBrowserTest { |
| 435 public: |
| 436 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| 437 command_line->AppendSwitch(switches::kSingleProcess); |
| 438 } |
| 439 }; |
| 440 |
| 441 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
| 442 RenderThreadShutdownTest) { |
| 443 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
| 444 } |
| 445 |
434 } // namespace content | 446 } // namespace content |
OLD | NEW |