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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_database_helper_unittest.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698