| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |