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