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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 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
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 "chrome/browser/content_settings/content_settings_details.h" 10 #include "chrome/browser/content_settings/content_settings_details.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 EXPECT_EQ(CONTENT_SETTING_BLOCK, 393 EXPECT_EQ(CONTENT_SETTING_BLOCK,
394 host_content_settings_map->GetContentSetting( 394 host_content_settings_map->GetContentSetting(
395 host, host, CONTENT_SETTINGS_TYPE_IMAGES, "")); 395 host, host, CONTENT_SETTINGS_TYPE_IMAGES, ""));
396 } 396 }
397 397
398 TEST_F(HostContentSettingsMapTest, HostTrimEndingDotCheck) { 398 TEST_F(HostContentSettingsMapTest, HostTrimEndingDotCheck) {
399 TestingProfile profile; 399 TestingProfile profile;
400 HostContentSettingsMap* host_content_settings_map = 400 HostContentSettingsMap* host_content_settings_map =
401 profile.GetHostContentSettingsMap(); 401 profile.GetHostContentSettingsMap();
402 CookieSettings* cookie_settings = 402 CookieSettings* cookie_settings =
403 CookieSettings::Factory::GetForProfile(&profile); 403 CookieSettings::Factory::GetForProfile(&profile).get();
404 404
405 ContentSettingsPattern pattern = 405 ContentSettingsPattern pattern =
406 ContentSettingsPattern::FromString("[*.]example.com"); 406 ContentSettingsPattern::FromString("[*.]example.com");
407 GURL host_ending_with_dot("http://example.com./"); 407 GURL host_ending_with_dot("http://example.com./");
408 408
409 EXPECT_EQ(CONTENT_SETTING_ALLOW, 409 EXPECT_EQ(CONTENT_SETTING_ALLOW,
410 host_content_settings_map->GetContentSetting( 410 host_content_settings_map->GetContentSetting(
411 host_ending_with_dot, 411 host_ending_with_dot,
412 host_ending_with_dot, 412 host_ending_with_dot,
413 CONTENT_SETTINGS_TYPE_IMAGES, 413 CONTENT_SETTINGS_TYPE_IMAGES,
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 GURL("http://other.com"), 1104 GURL("http://other.com"),
1105 CONTENT_SETTINGS_TYPE_COOKIES, 1105 CONTENT_SETTINGS_TYPE_COOKIES,
1106 std::string())); 1106 std::string()));
1107 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY, 1107 EXPECT_EQ(CONTENT_SETTING_SESSION_ONLY,
1108 host_content_settings_map->GetContentSetting( 1108 host_content_settings_map->GetContentSetting(
1109 GURL("http://third.com"), 1109 GURL("http://third.com"),
1110 GURL("http://third.com"), 1110 GURL("http://third.com"),
1111 CONTENT_SETTINGS_TYPE_COOKIES, 1111 CONTENT_SETTINGS_TYPE_COOKIES,
1112 std::string())); 1112 std::string()));
1113 } 1113 }
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/content_settings_internal_extension_provider.cc ('k') | chrome/browser/cookies_tree_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698