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

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

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/test/testing_profile.h" 8 #include "chrome/test/testing_profile.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace { 11 namespace {
11 class TestCompletionCallback { 12 class TestCompletionCallback {
12 public: 13 public:
13 TestCompletionCallback() 14 TestCompletionCallback()
14 : have_result_(false) { 15 : have_result_(false) {
15 } 16 }
16 17
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 102
102 scoped_refptr<CannedBrowsingDataDatabaseHelper> helper = 103 scoped_refptr<CannedBrowsingDataDatabaseHelper> helper =
103 new CannedBrowsingDataDatabaseHelper(&profile); 104 new CannedBrowsingDataDatabaseHelper(&profile);
104 105
105 ASSERT_TRUE(helper->empty()); 106 ASSERT_TRUE(helper->empty());
106 helper->AddDatabase(origin, db, ""); 107 helper->AddDatabase(origin, db, "");
107 ASSERT_FALSE(helper->empty()); 108 ASSERT_FALSE(helper->empty());
108 helper->Reset(); 109 helper->Reset();
109 ASSERT_TRUE(helper->empty()); 110 ASSERT_TRUE(helper->empty());
110 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698