| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, EmptyBlob) { | 433 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, EmptyBlob) { |
| 434 // First delete all IDB's for the test origin | 434 // First delete all IDB's for the test origin |
| 435 GetContext()->TaskRunner()->PostTask( | 435 GetContext()->TaskRunner()->PostTask( |
| 436 FROM_HERE, base::Bind(&IndexedDBContextImpl::DeleteForOrigin, | 436 FROM_HERE, base::Bind(&IndexedDBContextImpl::DeleteForOrigin, |
| 437 GetContext(), GURL("file:///"))); | 437 GetContext(), GURL("file:///"))); |
| 438 EXPECT_EQ(0, RequestBlobFileCount()); // Start with no blob files. | 438 EXPECT_EQ(0, RequestBlobFileCount()); // Start with no blob files. |
| 439 const GURL test_url = GetTestUrl("indexeddb", "empty_blob.html"); | 439 const GURL test_url = GetTestUrl("indexeddb", "empty_blob.html"); |
| 440 // For some reason Android's futimes fails (EPERM) in this test. Do not assert | 440 // For some reason Android's futimes fails (EPERM) in this test. Do not assert |
| 441 // file times on Android, but do so on other platforms. crbug.com/467247 | 441 // file times on Android, but do so on other platforms. crbug.com/467247 |
| 442 // TODO(cmumford): Figure out why this is the case and fix if possible. | 442 // TODO(cmumford): Figure out why this is the case and fix if possible. |
| 443 #if defined(OS_ANDROID) | |
| 444 SimpleTest(GURL(test_url.spec() + "#ignoreTimes")); | |
| 445 #else | |
| 446 SimpleTest(GURL(test_url.spec())); | 443 SimpleTest(GURL(test_url.spec())); |
| 447 #endif | |
| 448 // Test stores one blob and one file to disk, so expect two files. | 444 // Test stores one blob and one file to disk, so expect two files. |
| 449 EXPECT_EQ(2, RequestBlobFileCount()); | 445 EXPECT_EQ(2, RequestBlobFileCount()); |
| 450 } | 446 } |
| 451 | 447 |
| 452 // Very flaky on many bots. See crbug.com/459835 | 448 // Very flaky on many bots. See crbug.com/459835 |
| 453 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, DISABLED_BlobDidAck) { | 449 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, DISABLED_BlobDidAck) { |
| 454 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html")); | 450 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html")); |
| 455 // Wait for idle so that the blob ack has time to be received/processed by | 451 // Wait for idle so that the blob ack has time to be received/processed by |
| 456 // the browser process. | 452 // the browser process. |
| 457 base::MessageLoop::current()->RunUntilIdle(); | 453 base::MessageLoop::current()->RunUntilIdle(); |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 #define MAYBE_RenderThreadShutdownTest DISABLED_RenderThreadShutdownTest | 844 #define MAYBE_RenderThreadShutdownTest DISABLED_RenderThreadShutdownTest |
| 849 #else | 845 #else |
| 850 #define MAYBE_RenderThreadShutdownTest RenderThreadShutdownTest | 846 #define MAYBE_RenderThreadShutdownTest RenderThreadShutdownTest |
| 851 #endif | 847 #endif |
| 852 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, | 848 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
| 853 MAYBE_RenderThreadShutdownTest) { | 849 MAYBE_RenderThreadShutdownTest) { |
| 854 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); | 850 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
| 855 } | 851 } |
| 856 | 852 |
| 857 } // namespace content | 853 } // namespace content |
| OLD | NEW |