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 // No longer testable with file: URL: http://crbug.com/104748 |
jsbell
2012/03/02 00:51:31
Remove this comment
dgrogan
2012/03/02 01:23:54
Done.
| |
337 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithLowQuota, DISABLED_QuotaTest) { | 337 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithLowQuota, QuotaTest) { |
338 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("quota_test.html")))); | 338 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("quota_test.html")))); |
339 } | 339 } |
340 | 340 |
341 class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest { | 341 class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest { |
342 public: | 342 public: |
343 virtual void SetUpCommandLine(CommandLine* command_line) { | 343 virtual void SetUpCommandLine(CommandLine* command_line) { |
344 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); | 344 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); |
345 } | 345 } |
346 }; | 346 }; |
347 | 347 |
348 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, | 348 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, |
349 DatabaseCallbacksTest) { | 349 DatabaseCallbacksTest) { |
350 SimpleTest( | 350 SimpleTest( |
351 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); | 351 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); |
352 } | 352 } |
OLD | NEW |