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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 398 |
399 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, CanDeleteWhenOverQuotaTest) { | 399 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, CanDeleteWhenOverQuotaTest) { |
400 SimpleTest(GetTestUrl("indexeddb", "fill_up_5k.html")); | 400 SimpleTest(GetTestUrl("indexeddb", "fill_up_5k.html")); |
401 int64 size = RequestDiskUsage(); | 401 int64 size = RequestDiskUsage(); |
402 const int kQuotaKilobytes = 2; | 402 const int kQuotaKilobytes = 2; |
403 EXPECT_GT(size, kQuotaKilobytes * 1024); | 403 EXPECT_GT(size, kQuotaKilobytes * 1024); |
404 SetQuota(kQuotaKilobytes); | 404 SetQuota(kQuotaKilobytes); |
405 SimpleTest(GetTestUrl("indexeddb", "delete_over_quota.html")); | 405 SimpleTest(GetTestUrl("indexeddb", "delete_over_quota.html")); |
406 } | 406 } |
407 | 407 |
408 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, BlobDidAck) { | 408 // Flaky on Android. https://crbug.com/460948 |
| 409 #if defined(ANDROID) |
| 410 #define MAYBE_BlobDidAck DISABLED_BlobDidAck |
| 411 #else |
| 412 #define MAYBE_BlobDidAck BlobDidAck |
| 413 #endif |
| 414 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, MAYBE_BlobDidAck) { |
409 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html")); | 415 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html")); |
410 content::ChromeBlobStorageContext* blob_context = | 416 content::ChromeBlobStorageContext* blob_context = |
411 ChromeBlobStorageContext::GetFor( | 417 ChromeBlobStorageContext::GetFor( |
412 shell()->web_contents()->GetBrowserContext()); | 418 shell()->web_contents()->GetBrowserContext()); |
413 EXPECT_EQ(0UL, blob_context->context()->blob_count()); | 419 EXPECT_EQ(0UL, blob_context->context()->blob_count()); |
414 } | 420 } |
415 | 421 |
416 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, BlobDidAckPrefetch) { | 422 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, BlobDidAckPrefetch) { |
417 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack_prefetch.html")); | 423 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack_prefetch.html")); |
418 content::ChromeBlobStorageContext* blob_context = | 424 content::ChromeBlobStorageContext* blob_context = |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 command_line->AppendSwitch(switches::kSingleProcess); | 801 command_line->AppendSwitch(switches::kSingleProcess); |
796 } | 802 } |
797 }; | 803 }; |
798 | 804 |
799 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, | 805 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
800 RenderThreadShutdownTest) { | 806 RenderThreadShutdownTest) { |
801 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); | 807 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
802 } | 808 } |
803 | 809 |
804 } // namespace content | 810 } // namespace content |
OLD | NEW |