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

Side by Side Diff: chrome/browser/content_settings/content_settings_policy_provider_unittest.cc

Issue 6532034: GTTF: Use a fresh TestingBrowserProcess for each test, part #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/content_settings/content_settings_policy_provider.h" 5 #include "chrome/browser/content_settings/content_settings_policy_provider.h"
6 6
7 #include "chrome/browser/browser_thread.h" 7 #include "chrome/browser/browser_thread.h"
8 #include "chrome/browser/content_settings/stub_settings_observer.h" 8 #include "chrome/browser/content_settings/stub_settings_observer.h"
9 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/test/testing_browser_process_test.h"
12 #include "chrome/test/testing_pref_service.h" 13 #include "chrome/test/testing_pref_service.h"
13 #include "chrome/test/testing_profile.h" 14 #include "chrome/test/testing_profile.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 17
17 namespace content_settings { 18 namespace content_settings {
18 19
19 class PolicyDefaultProviderTest : public testing::Test { 20 class PolicyDefaultProviderTest : public TestingBrowserProcessTest {
20 public: 21 public:
21 PolicyDefaultProviderTest() 22 PolicyDefaultProviderTest()
22 : ui_thread_(BrowserThread::UI, &message_loop_) { 23 : ui_thread_(BrowserThread::UI, &message_loop_) {
23 } 24 }
24 25
25 protected: 26 protected:
26 MessageLoop message_loop_; 27 MessageLoop message_loop_;
27 BrowserThread ui_thread_; 28 BrowserThread ui_thread_;
28 }; 29 };
29 30
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 prefs->RemoveManagedPref(prefs::kManagedDefaultImagesSetting); 75 prefs->RemoveManagedPref(prefs::kManagedDefaultImagesSetting);
75 EXPECT_EQ(profile.GetHostContentSettingsMap(), observer.last_notifier); 76 EXPECT_EQ(profile.GetHostContentSettingsMap(), observer.last_notifier);
76 EXPECT_EQ(CONTENT_SETTINGS_TYPE_DEFAULT, observer.last_type); 77 EXPECT_EQ(CONTENT_SETTINGS_TYPE_DEFAULT, observer.last_type);
77 EXPECT_EQ(ContentSettingsPattern(), observer.last_pattern); 78 EXPECT_EQ(ContentSettingsPattern(), observer.last_pattern);
78 EXPECT_TRUE(observer.last_update_all); 79 EXPECT_TRUE(observer.last_update_all);
79 EXPECT_TRUE(observer.last_update_all_types); 80 EXPECT_TRUE(observer.last_update_all_types);
80 EXPECT_EQ(2, observer.counter); 81 EXPECT_EQ(2, observer.counter);
81 } 82 }
82 83
83 } // namespace content_settings 84 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698