OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_path.h" | 11 #include "base/file_path.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/test/thread_test_helper.h" | 14 #include "base/test/thread_test_helper.h" |
15 #include "chrome/browser/browsing_data_helper_browsertest.h" | 15 #include "chrome/browser/browsing_data_helper_browsertest.h" |
16 #include "chrome/browser/browsing_data_local_storage_helper.h" | 16 #include "chrome/browser/browsing_data_local_storage_helper.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
19 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
20 #include "chrome/test/base/ui_test_utils.h" | 20 #include "chrome/test/base/ui_test_utils.h" |
21 #include "content/browser/in_process_webkit/webkit_context.h" | 21 #include "content/browser/in_process_webkit/webkit_context.h" |
22 #include "content/browser/in_process_webkit/webkit_thread.h" | |
23 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
24 | 23 |
25 using content::BrowserThread; | 24 using content::BrowserThread; |
26 | 25 |
27 namespace { | 26 namespace { |
28 typedef | 27 typedef |
29 BrowsingDataHelperCallback<BrowsingDataLocalStorageHelper::LocalStorageInfo> | 28 BrowsingDataHelperCallback<BrowsingDataLocalStorageHelper::LocalStorageInfo> |
30 TestCompletionCallback; | 29 TestCompletionCallback; |
31 | 30 |
32 const FilePath::CharType kTestFile0[] = | 31 const FilePath::CharType kTestFile0[] = |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 base::Unretained(&callback))); | 187 base::Unretained(&callback))); |
189 | 188 |
190 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> result = | 189 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> result = |
191 callback.result(); | 190 callback.result(); |
192 | 191 |
193 ASSERT_EQ(1u, result.size()); | 192 ASSERT_EQ(1u, result.size()); |
194 EXPECT_EQ(FilePath(file).value(), | 193 EXPECT_EQ(FilePath(file).value(), |
195 result.begin()->file_path.BaseName().value()); | 194 result.begin()->file_path.BaseName().value()); |
196 } | 195 } |
197 } // namespace | 196 } // namespace |
OLD | NEW |