| 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/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 qm->SetTemporaryGlobalOverrideQuota(bytes, quota::QuotaCallback()); | 326 qm->SetTemporaryGlobalOverrideQuota(bytes, quota::QuotaCallback()); |
| 327 // Don't return until the quota has been set. | 327 // Don't return until the quota has been set. |
| 328 scoped_refptr<base::ThreadTestHelper> helper( | 328 scoped_refptr<base::ThreadTestHelper> helper( |
| 329 new base::ThreadTestHelper( | 329 new base::ThreadTestHelper( |
| 330 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))); | 330 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))); |
| 331 ASSERT_TRUE(helper->Run()); | 331 ASSERT_TRUE(helper->Run()); |
| 332 } | 332 } |
| 333 | 333 |
| 334 }; | 334 }; |
| 335 | 335 |
| 336 // No longer testable with file: URL: http://crbug.com/104748 | 336 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithLowQuota, QuotaTest) { |
| 337 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithLowQuota, DISABLED_QuotaTest) { | |
| 338 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("quota_test.html")))); | 337 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("quota_test.html")))); |
| 339 } | 338 } |
| 340 | 339 |
| 341 class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest { | 340 class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest { |
| 342 public: | 341 public: |
| 343 virtual void SetUpCommandLine(CommandLine* command_line) { | 342 virtual void SetUpCommandLine(CommandLine* command_line) { |
| 344 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); | 343 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); |
| 345 } | 344 } |
| 346 }; | 345 }; |
| 347 | 346 |
| 348 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, | 347 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, |
| 349 DatabaseCallbacksTest) { | 348 DatabaseCallbacksTest) { |
| 350 SimpleTest( | 349 SimpleTest( |
| 351 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); | 350 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); |
| 352 } | 351 } |
| OLD | NEW |