OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 qm->SetTemporaryGlobalOverrideQuota(bytes, quota::QuotaCallback()); | 227 qm->SetTemporaryGlobalOverrideQuota(bytes, quota::QuotaCallback()); |
228 // Don't return until the quota has been set. | 228 // Don't return until the quota has been set. |
229 scoped_refptr<base::ThreadTestHelper> helper( | 229 scoped_refptr<base::ThreadTestHelper> helper( |
230 new base::ThreadTestHelper( | 230 new base::ThreadTestHelper( |
231 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))); | 231 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))); |
232 ASSERT_TRUE(helper->Run()); | 232 ASSERT_TRUE(helper->Run()); |
233 } | 233 } |
234 | 234 |
235 }; | 235 }; |
236 | 236 |
237 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithLowQuota, QuotaTest) { | 237 // See http://crbug.com/101927 |
| 238 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithLowQuota, DISABLED_QuotaTest) { |
238 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("quota_test.html")))); | 239 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("quota_test.html")))); |
239 } | 240 } |
240 | 241 |
241 class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest { | 242 class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest { |
242 public: | 243 public: |
243 virtual void SetUpCommandLine(CommandLine* command_line) { | 244 virtual void SetUpCommandLine(CommandLine* command_line) { |
244 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); | 245 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); |
245 } | 246 } |
246 }; | 247 }; |
247 | 248 |
248 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, | 249 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, |
249 DatabaseCallbacksTest) { | 250 DatabaseCallbacksTest) { |
250 SimpleTest( | 251 SimpleTest( |
251 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); | 252 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); |
252 } | 253 } |
OLD | NEW |