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/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_enumerator.h" | 9 #include "base/files/file_enumerator.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
635 // deleting reduces the amount stored. | 635 // deleting reduces the amount stored. |
636 | 636 |
637 // The below tests make assumptions about implementation specifics, such as | 637 // The below tests make assumptions about implementation specifics, such as |
638 // data compression, compaction efficiency, and the maximum amount of | 638 // data compression, compaction efficiency, and the maximum amount of |
639 // metadata and log data remains after a deletion. It is possible that | 639 // metadata and log data remains after a deletion. It is possible that |
640 // changes to the implementation may require these constants to be tweaked. | 640 // changes to the implementation may require these constants to be tweaked. |
641 | 641 |
642 const int kTestFillBytes = 1024 * 1024 * 5; // 5MB | 642 const int kTestFillBytes = 1024 * 1024 * 5; // 5MB |
643 EXPECT_GT(after_filling, kTestFillBytes); | 643 EXPECT_GT(after_filling, kTestFillBytes); |
644 | 644 |
645 const int kTestCompactBytes = 1024 * 1024 * 1; // 1MB | 645 const int kTestCompactBytes = 1024 * 10; // 10kB |
jsbell
2014/07/17 18:33:24
Nice!
| |
646 EXPECT_LT(after_deleting, kTestCompactBytes); | 646 EXPECT_LT(after_deleting, kTestCompactBytes); |
647 } | 647 } |
648 | 648 |
649 // Complex multi-step (converted from pyauto) tests begin here. | 649 // Complex multi-step (converted from pyauto) tests begin here. |
650 | 650 |
651 // Verify null key path persists after restarting browser. | 651 // Verify null key path persists after restarting browser. |
652 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, PRE_NullKeyPathPersistence) { | 652 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, PRE_NullKeyPathPersistence) { |
653 NavigateAndWaitForTitle(shell(), "bug_90635.html", "#part1", | 653 NavigateAndWaitForTitle(shell(), "bug_90635.html", "#part1", |
654 "pass - first run"); | 654 "pass - first run"); |
655 } | 655 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
734 #define MAYBE_RenderThreadShutdownTest DISABLED_RenderThreadShutdownTest | 734 #define MAYBE_RenderThreadShutdownTest DISABLED_RenderThreadShutdownTest |
735 #else | 735 #else |
736 #define MAYBE_RenderThreadShutdownTest RenderThreadShutdownTest | 736 #define MAYBE_RenderThreadShutdownTest RenderThreadShutdownTest |
737 #endif | 737 #endif |
738 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, | 738 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestSingleProcess, |
739 MAYBE_RenderThreadShutdownTest) { | 739 MAYBE_RenderThreadShutdownTest) { |
740 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); | 740 SimpleTest(GetTestUrl("indexeddb", "shutdown_with_requests.html")); |
741 } | 741 } |
742 | 742 |
743 } // namespace content | 743 } // namespace content |
OLD | NEW |