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 "chrome/browser/browsing_data/browsing_data_database_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
6 | 6 |
7 #include "chrome/test/base/testing_profile.h" | 7 #include "chrome/test/base/testing_profile.h" |
8 #include "content/public/test/test_browser_thread_bundle.h" | 8 #include "content/public/test/test_browser_thread_bundle.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "webkit/common/database/database_identifier.h" | 10 #include "storage/common/database/database_identifier.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 using webkit_database::DatabaseIdentifier; | 14 using webkit_database::DatabaseIdentifier; |
15 | 15 |
16 class CannedBrowsingDataDatabaseHelperTest : public testing::Test { | 16 class CannedBrowsingDataDatabaseHelperTest : public testing::Test { |
17 content::TestBrowserThreadBundle thread_bundle_; | 17 content::TestBrowserThreadBundle thread_bundle_; |
18 }; | 18 }; |
19 | 19 |
20 TEST_F(CannedBrowsingDataDatabaseHelperTest, Empty) { | 20 TEST_F(CannedBrowsingDataDatabaseHelperTest, Empty) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 ASSERT_TRUE(helper->empty()); | 74 ASSERT_TRUE(helper->empty()); |
75 helper->AddDatabase(origin1, db, std::string()); | 75 helper->AddDatabase(origin1, db, std::string()); |
76 ASSERT_TRUE(helper->empty()); | 76 ASSERT_TRUE(helper->empty()); |
77 helper->AddDatabase(origin2, db, std::string()); | 77 helper->AddDatabase(origin2, db, std::string()); |
78 ASSERT_TRUE(helper->empty()); | 78 ASSERT_TRUE(helper->empty()); |
79 helper->Reset(); | 79 helper->Reset(); |
80 ASSERT_TRUE(helper->empty()); | 80 ASSERT_TRUE(helper->empty()); |
81 } | 81 } |
82 | 82 |
83 } // namespace | 83 } // namespace |
OLD | NEW |