| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 11 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" | 12 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
| 12 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h" | 13 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/test/base/in_process_browser_test.h" | 16 #include "chrome/test/base/in_process_browser_test.h" |
| 16 #include "content/public/browser/storage_partition.h" | 17 #include "content/public/browser/storage_partition.h" |
| 17 #include "content/public/test/test_browser_thread.h" | 18 #include "content/public/test/test_browser_thread.h" |
| 18 #include "content/public/test/test_utils.h" | 19 #include "content/public/test/test_utils.h" |
| 19 | 20 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 base::Unretained(&callback))); | 146 base::Unretained(&callback))); |
| 146 | 147 |
| 147 std::list<BrowsingDataDatabaseHelper::DatabaseInfo> result = | 148 std::list<BrowsingDataDatabaseHelper::DatabaseInfo> result = |
| 148 callback.result(); | 149 callback.result(); |
| 149 | 150 |
| 150 ASSERT_EQ(1u, result.size()); | 151 ASSERT_EQ(1u, result.size()); |
| 151 EXPECT_EQ(origin_str, result.begin()->identifier.ToString()); | 152 EXPECT_EQ(origin_str, result.begin()->identifier.ToString()); |
| 152 EXPECT_STREQ(db, result.begin()->database_name.c_str()); | 153 EXPECT_STREQ(db, result.begin()->database_name.c_str()); |
| 153 } | 154 } |
| 154 } // namespace | 155 } // namespace |
| OLD | NEW |