Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: content/browser/indexed_db/indexed_db_browsertest.cc

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: added shared memory test, and fixed memory leak Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, EmptyBlob) { 439 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, EmptyBlob) {
440 // First delete all IDB's for the test origin 440 // First delete all IDB's for the test origin
441 GetContext()->TaskRunner()->PostTask( 441 GetContext()->TaskRunner()->PostTask(
442 FROM_HERE, base::Bind(&IndexedDBContextImpl::DeleteForOrigin, 442 FROM_HERE, base::Bind(&IndexedDBContextImpl::DeleteForOrigin,
443 GetContext(), GURL("file:///"))); 443 GetContext(), GURL("file:///")));
444 EXPECT_EQ(0, RequestBlobFileCount()); // Start with no blob files. 444 EXPECT_EQ(0, RequestBlobFileCount()); // Start with no blob files.
445 const GURL test_url = GetTestUrl("indexeddb", "empty_blob.html"); 445 const GURL test_url = GetTestUrl("indexeddb", "empty_blob.html");
446 // For some reason Android's futimes fails (EPERM) in this test. Do not assert 446 // For some reason Android's futimes fails (EPERM) in this test. Do not assert
447 // file times on Android, but do so on other platforms. crbug.com/467247 447 // file times on Android, but do so on other platforms. crbug.com/467247
448 // TODO(cmumford): Figure out why this is the case and fix if possible. 448 // TODO(cmumford): Figure out why this is the case and fix if possible.
449 #if defined(OS_ANDROID)
450 SimpleTest(GURL(test_url.spec() + "#ignoreTimes"));
451 #else
452 SimpleTest(GURL(test_url.spec())); 449 SimpleTest(GURL(test_url.spec()));
453 #endif
454 // Test stores one blob and one file to disk, so expect two files. 450 // Test stores one blob and one file to disk, so expect two files.
455 EXPECT_EQ(2, RequestBlobFileCount()); 451 EXPECT_EQ(2, RequestBlobFileCount());
456 } 452 }
457 453
458 // Very flaky on many bots. See crbug.com/459835 454 // Very flaky on many bots. See crbug.com/459835
459 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, DISABLED_BlobDidAck) { 455 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, DISABLED_BlobDidAck) {
460 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html")); 456 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html"));
461 // Wait for idle so that the blob ack has time to be received/processed by 457 // Wait for idle so that the blob ack has time to be received/processed by
462 // the browser process. 458 // the browser process.
463 base::MessageLoop::current()->RunUntilIdle(); 459 base::MessageLoop::current()->RunUntilIdle();
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 command_line->AppendSwitch(switches::kSingleProcess); 844 command_line->AppendSwitch(switches::kSingleProcess);
849 } 845 }
850 }; 846 };
851 847
852 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, 848 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess,
853 RenderThreadShutdownTest) { 849 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698