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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 months 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) 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/cookies_tree_model.h" 5 #include "chrome/browser/cookies_tree_model.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/browser/content_settings/cookie_settings.h" 10 #include "chrome/browser/content_settings/cookie_settings.h"
11 #include "chrome/browser/content_settings/host_content_settings_map.h" 11 #include "chrome/browser/content_settings/host_content_settings_map.h"
12 #include "chrome/browser/content_settings/mock_settings_observer.h" 12 #include "chrome/browser/content_settings/mock_settings_observer.h"
13 #include "chrome/browser/mock_browsing_data_appcache_helper.h" 13 #include "chrome/browser/mock_browsing_data_appcache_helper.h"
14 #include "chrome/browser/mock_browsing_data_cookie_helper.h" 14 #include "chrome/browser/mock_browsing_data_cookie_helper.h"
15 #include "chrome/browser/mock_browsing_data_database_helper.h" 15 #include "chrome/browser/mock_browsing_data_database_helper.h"
16 #include "chrome/browser/mock_browsing_data_file_system_helper.h" 16 #include "chrome/browser/mock_browsing_data_file_system_helper.h"
17 #include "chrome/browser/mock_browsing_data_indexed_db_helper.h" 17 #include "chrome/browser/mock_browsing_data_indexed_db_helper.h"
18 #include "chrome/browser/mock_browsing_data_local_storage_helper.h" 18 #include "chrome/browser/mock_browsing_data_local_storage_helper.h"
19 #include "chrome/browser/mock_browsing_data_quota_helper.h" 19 #include "chrome/browser/mock_browsing_data_quota_helper.h"
20 #include "chrome/browser/mock_browsing_data_server_bound_cert_helper.h" 20 #include "chrome/browser/mock_browsing_data_server_bound_cert_helper.h"
21 #include "chrome/test/base/testing_profile.h" 21 #include "chrome/test/base/testing_profile.h"
22 #include "content/public/browser/notification_details.h" 22 #include "content/public/browser/notification_details.h"
23 #include "content/public/browser/notification_types.h" 23 #include "content/public/browser/notification_types.h"
24 #include "content/test/test_browser_thread.h" 24 #include "content/public/test/test_browser_thread.h"
25 #include "net/url_request/url_request_context.h" 25 #include "net/url_request/url_request_context.h"
26 #include "net/url_request/url_request_context_getter.h" 26 #include "net/url_request/url_request_context_getter.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 #include "base/utf_string_conversions.h" 29 #include "base/utf_string_conversions.h"
30 30
31 using ::testing::_; 31 using ::testing::_;
32 using content::BrowserThread; 32 using content::BrowserThread;
33 33
34 namespace { 34 namespace {
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 cookies_model->UpdateSearchResults(std::wstring(L"fshost3")); 1082 cookies_model->UpdateSearchResults(std::wstring(L"fshost3"));
1083 EXPECT_EQ("http://fshost3:3/", 1083 EXPECT_EQ("http://fshost3:3/",
1084 GetDisplayedFileSystems(cookies_model.get())); 1084 GetDisplayedFileSystems(cookies_model.get()));
1085 1085
1086 cookies_model->UpdateSearchResults(std::wstring()); 1086 cookies_model->UpdateSearchResults(std::wstring());
1087 EXPECT_EQ("http://fshost1:1/,http://fshost2:2/,http://fshost3:3/", 1087 EXPECT_EQ("http://fshost1:1/,http://fshost2:2/,http://fshost3:3/",
1088 GetDisplayedFileSystems(cookies_model.get())); 1088 GetDisplayedFileSystems(cookies_model.get()));
1089 } 1089 }
1090 1090
1091 } // namespace 1091 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698