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

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

Issue 7465041: GTTF: Use a fresh TestingBrowserProcess for each test, part #4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 9 years, 4 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) 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 "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 "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/content_settings/mock_settings_observer.h" 10 #include "chrome/browser/content_settings/mock_settings_observer.h"
11 #include "chrome/browser/mock_browsing_data_appcache_helper.h" 11 #include "chrome/browser/mock_browsing_data_appcache_helper.h"
12 #include "chrome/browser/mock_browsing_data_database_helper.h" 12 #include "chrome/browser/mock_browsing_data_database_helper.h"
13 #include "chrome/browser/mock_browsing_data_file_system_helper.h" 13 #include "chrome/browser/mock_browsing_data_file_system_helper.h"
14 #include "chrome/browser/mock_browsing_data_indexed_db_helper.h" 14 #include "chrome/browser/mock_browsing_data_indexed_db_helper.h"
15 #include "chrome/browser/mock_browsing_data_local_storage_helper.h" 15 #include "chrome/browser/mock_browsing_data_local_storage_helper.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "chrome/test/testing_browser_process_test.h"
17 #include "content/common/content_notification_types.h" 18 #include "content/common/content_notification_types.h"
18 #include "content/common/notification_details.h" 19 #include "content/common/notification_details.h"
19 #include "net/url_request/url_request_context.h" 20 #include "net/url_request/url_request_context.h"
20 #include "net/url_request/url_request_context_getter.h" 21 #include "net/url_request/url_request_context_getter.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 23
23 #include "base/utf_string_conversions.h" 24 #include "base/utf_string_conversions.h"
24 25
25 using ::testing::_; 26 using ::testing::_;
26 27
27 namespace { 28 namespace {
28 29
29 class CookiesTreeModelTest : public testing::Test { 30 class CookiesTreeModelTest : public TestingBrowserProcessTest {
30 public: 31 public:
31 CookiesTreeModelTest() : ui_thread_(BrowserThread::UI, &message_loop_), 32 CookiesTreeModelTest() : ui_thread_(BrowserThread::UI, &message_loop_),
32 io_thread_(BrowserThread::IO, &message_loop_) { 33 io_thread_(BrowserThread::IO, &message_loop_) {
33 } 34 }
34 35
35 virtual ~CookiesTreeModelTest() { 36 virtual ~CookiesTreeModelTest() {
36 } 37 }
37 38
38 virtual void SetUp() { 39 virtual void SetUp() {
39 profile_.reset(new TestingProfile()); 40 profile_.reset(new TestingProfile());
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 cookies_model->UpdateSearchResults(std::wstring(L"fshost3")); 901 cookies_model->UpdateSearchResults(std::wstring(L"fshost3"));
901 EXPECT_EQ("http://fshost3:3/", 902 EXPECT_EQ("http://fshost3:3/",
902 GetDisplayedFileSystems(cookies_model.get())); 903 GetDisplayedFileSystems(cookies_model.get()));
903 904
904 cookies_model->UpdateSearchResults(std::wstring()); 905 cookies_model->UpdateSearchResults(std::wstring());
905 EXPECT_EQ("http://fshost1:1/,http://fshost2:2/,http://fshost3:3/", 906 EXPECT_EQ("http://fshost1:1/,http://fshost2:2/,http://fshost3:3/",
906 GetDisplayedFileSystems(cookies_model.get())); 907 GetDisplayedFileSystems(cookies_model.get()));
907 } 908 }
908 909
909 } // namespace 910 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698