Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: chrome/browser/browsing_data_local_storage_helper_browsertest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" 22 #include "content/browser/in_process_webkit/webkit_thread.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 using content::BrowserThread;
26
25 namespace { 27 namespace {
26 typedef 28 typedef
27 BrowsingDataHelperCallback<BrowsingDataLocalStorageHelper::LocalStorageInfo> 29 BrowsingDataHelperCallback<BrowsingDataLocalStorageHelper::LocalStorageInfo>
28 TestCompletionCallback; 30 TestCompletionCallback;
29 31
30 const FilePath::CharType kTestFile0[] = 32 const FilePath::CharType kTestFile0[] =
31 FILE_PATH_LITERAL("http_www.chromium.org_0.localstorage"); 33 FILE_PATH_LITERAL("http_www.chromium.org_0.localstorage");
32 34
33 const FilePath::CharType kTestFile1[] = 35 const FilePath::CharType kTestFile1[] =
34 FILE_PATH_LITERAL("http_www.google.com_0.localstorage"); 36 FILE_PATH_LITERAL("http_www.google.com_0.localstorage");
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 base::Unretained(&callback))); 188 base::Unretained(&callback)));
187 189
188 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> result = 190 std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> result =
189 callback.result(); 191 callback.result();
190 192
191 ASSERT_EQ(1u, result.size()); 193 ASSERT_EQ(1u, result.size());
192 EXPECT_EQ(FilePath(file).value(), 194 EXPECT_EQ(FilePath(file).value(),
193 result.begin()->file_path.BaseName().value()); 195 result.begin()->file_path.BaseName().value());
194 } 196 }
195 } // namespace 197 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_local_storage_helper.cc ('k') | chrome/browser/browsing_data_quota_helper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698