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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 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 "base/auto_reset.h" 5 #include "base/auto_reset.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 15 matching lines...) Expand all
26 using content::BrowserThread; 26 using content::BrowserThread;
27 27
28 using ::testing::_; 28 using ::testing::_;
29 29
30 class HostContentSettingsMapTest : public testing::Test { 30 class HostContentSettingsMapTest : public testing::Test {
31 public: 31 public:
32 HostContentSettingsMapTest() : ui_thread_(BrowserThread::UI, &message_loop_) { 32 HostContentSettingsMapTest() : ui_thread_(BrowserThread::UI, &message_loop_) {
33 } 33 }
34 34
35 protected: 35 protected:
36 MessageLoop message_loop_; 36 base::MessageLoop message_loop_;
37 content::TestBrowserThread ui_thread_; 37 content::TestBrowserThread ui_thread_;
38 }; 38 };
39 39
40 TEST_F(HostContentSettingsMapTest, DefaultValues) { 40 TEST_F(HostContentSettingsMapTest, DefaultValues) {
41 TestingProfile profile; 41 TestingProfile profile;
42 HostContentSettingsMap* host_content_settings_map = 42 HostContentSettingsMap* host_content_settings_map =
43 profile.GetHostContentSettingsMap(); 43 profile.GetHostContentSettingsMap();
44 44
45 // Check setting defaults. 45 // Check setting defaults.
46 EXPECT_EQ(CONTENT_SETTING_ALLOW, 46 EXPECT_EQ(CONTENT_SETTING_ALLOW,
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 GURL("http://other.com"), 1072 GURL("http://other.com"),
1073 CONTENT_SETTINGS_TYPE_COOKIES, 1073 CONTENT_SETTINGS_TYPE_COOKIES,
1074 std::string())); 1074 std::string()));
1075 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, 1075 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY,
1076 host_content_settings_map->GetContentSetting( 1076 host_content_settings_map->GetContentSetting(
1077 GURL("http://third.com"), 1077 GURL("http://third.com"),
1078 GURL("http://third.com"), 1078 GURL("http://third.com"),
1079 CONTENT_SETTINGS_TYPE_COOKIES, 1079 CONTENT_SETTINGS_TYPE_COOKIES,
1080 std::string())); 1080 std::string()));
1081 } 1081 }
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/cookie_settings_unittest.cc ('k') | chrome/browser/crash_handler_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698