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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html")); | 454 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack.html")); |
455 // Wait for idle so that the blob ack has time to be received/processed by | 455 // Wait for idle so that the blob ack has time to be received/processed by |
456 // the browser process. | 456 // the browser process. |
457 base::MessageLoop::current()->RunUntilIdle(); | 457 base::MessageLoop::current()->RunUntilIdle(); |
458 content::ChromeBlobStorageContext* blob_context = | 458 content::ChromeBlobStorageContext* blob_context = |
459 ChromeBlobStorageContext::GetFor( | 459 ChromeBlobStorageContext::GetFor( |
460 shell()->web_contents()->GetBrowserContext()); | 460 shell()->web_contents()->GetBrowserContext()); |
461 EXPECT_EQ(0UL, blob_context->context()->blob_count()); | 461 EXPECT_EQ(0UL, blob_context->context()->blob_count()); |
462 } | 462 } |
463 | 463 |
464 // Very flaky on Linux. See crbug.com/459835. | 464 // Flaky. See crbug.com/459835. |
465 #if defined(OS_LINUX) | |
466 #define MAYBE_BlobDidAckPrefetch DISABLED_BlobDidAckPrefetch | |
467 #else | |
468 #define MAYBE_BlobDidAckPrefetch BlobDidAckPrefetch | |
469 #endif | |
470 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, | 465 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, |
471 MAYBE_BlobDidAckPrefetch) { | 466 DISABLED_BlobDidAckPrefetch) { |
472 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack_prefetch.html")); | 467 SimpleTest(GetTestUrl("indexeddb", "blob_did_ack_prefetch.html")); |
473 // Wait for idle so that the blob ack has time to be received/processed by | 468 // Wait for idle so that the blob ack has time to be received/processed by |
474 // the browser process. | 469 // the browser process. |
475 base::MessageLoop::current()->RunUntilIdle(); | 470 base::MessageLoop::current()->RunUntilIdle(); |
476 content::ChromeBlobStorageContext* blob_context = | 471 content::ChromeBlobStorageContext* blob_context = |
477 ChromeBlobStorageContext::GetFor( | 472 ChromeBlobStorageContext::GetFor( |
478 shell()->web_contents()->GetBrowserContext()); | 473 shell()->web_contents()->GetBrowserContext()); |
479 EXPECT_EQ(0UL, blob_context->context()->blob_count()); | 474 EXPECT_EQ(0UL, blob_context->context()->blob_count()); |
480 } | 475 } |
481 | 476 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 command_line->AppendSwitch(switches::kSingleProcess); | 842 command_line->AppendSwitch(switches::kSingleProcess); |
848 } | 843 } |
849 }; | 844 }; |
850 | 845 |
851 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, | 846 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
852 RenderThreadShutdownTest) { | 847 RenderThreadShutdownTest) { |
853 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); | 848 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
854 } | 849 } |
855 | 850 |
856 } // namespace content | 851 } // namespace content |
OLD | NEW |