| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/file_util.h" | |
| 12 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
| 13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "base/test/thread_test_helper.h" | 16 #include "base/test/thread_test_helper.h" |
| 17 #include "base/threading/sequenced_worker_pool.h" | 17 #include "base/threading/sequenced_worker_pool.h" |
| 18 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h" | 18 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h" |
| 19 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 19 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
| 22 #include "chrome/test/base/in_process_browser_test.h" | 22 #include "chrome/test/base/in_process_browser_test.h" |
| 23 #include "chrome/test/base/ui_test_utils.h" | 23 #include "chrome/test/base/ui_test_utils.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 base::Bind(&TestCompletionCallback::callback, | 182 base::Bind(&TestCompletionCallback::callback, |
| 183 base::Unretained(&callback))); | 183 base::Unretained(&callback))); |
| 184 | 184 |
| 185 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> result = | 185 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> result = |
| 186 callback.result(); | 186 callback.result(); |
| 187 | 187 |
| 188 ASSERT_EQ(1u, result.size()); | 188 ASSERT_EQ(1u, result.size()); |
| 189 EXPECT_EQ(origin, result.begin()->origin_url); | 189 EXPECT_EQ(origin, result.begin()->origin_url); |
| 190 } | 190 } |
| 191 } // namespace | 191 } // namespace |
| OLD | NEW |