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