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

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

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_database_helper.h" 5 #include "chrome/browser/browsing_data_database_helper.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "chrome/test/base/testing_browser_process_test.h"
8 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
9 #include "chrome/test/testing_browser_process_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace { 12 namespace {
13 13
14 typedef TestingBrowserProcessTest CannedBrowsingDataDatabaseTest; 14 typedef TestingBrowserProcessTest CannedBrowsingDataDatabaseTest;
15 15
16 TEST_F(CannedBrowsingDataDatabaseTest, Empty) { 16 TEST_F(CannedBrowsingDataDatabaseTest, Empty) {
17 TestingProfile profile; 17 TestingProfile profile;
18 18
19 const GURL origin("http://host1:1/"); 19 const GURL origin("http://host1:1/");
20 const char db[] = "db1"; 20 const char db[] = "db1";
21 21
22 scoped_refptr<CannedBrowsingDataDatabaseHelper> helper( 22 scoped_refptr<CannedBrowsingDataDatabaseHelper> helper(
23 new CannedBrowsingDataDatabaseHelper(&profile)); 23 new CannedBrowsingDataDatabaseHelper(&profile));
24 24
25 ASSERT_TRUE(helper->empty()); 25 ASSERT_TRUE(helper->empty());
26 helper->AddDatabase(origin, db, ""); 26 helper->AddDatabase(origin, db, "");
27 ASSERT_FALSE(helper->empty()); 27 ASSERT_FALSE(helper->empty());
28 helper->Reset(); 28 helper->Reset();
29 ASSERT_TRUE(helper->empty()); 29 ASSERT_TRUE(helper->empty());
30 } 30 }
31 31
32 } // namespace 32 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_appcache_helper_unittest.cc ('k') | chrome/browser/browsing_data_file_system_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698