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

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

Issue 7616019: Reorganize chrome/test, part #9 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 "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 "chrome/browser/content_settings/content_settings_details.h" 9 #include "chrome/browser/content_settings/content_settings_details.h"
10 #include "chrome/browser/content_settings/host_content_settings_map.h" 10 #include "chrome/browser/content_settings/host_content_settings_map.h"
11 #include "chrome/browser/content_settings/mock_settings_observer.h" 11 #include "chrome/browser/content_settings/mock_settings_observer.h"
12 #include "chrome/browser/prefs/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 #include "chrome/browser/prefs/scoped_user_pref_update.h" 13 #include "chrome/browser/prefs/scoped_user_pref_update.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
17 #include "chrome/test/base/testing_browser_process_test.h"
17 #include "chrome/test/base/testing_pref_service.h" 18 #include "chrome/test/base/testing_pref_service.h"
18 #include "chrome/test/base/testing_profile.h" 19 #include "chrome/test/base/testing_profile.h"
19 #include "chrome/test/testing_browser_process_test.h"
20 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
21 #include "net/base/static_cookie_policy.h" 21 #include "net/base/static_cookie_policy.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 using ::testing::_; 24 using ::testing::_;
25 25
26 namespace { 26 namespace {
27 27
28 bool SettingsEqual(const ContentSettings& settings1, 28 bool SettingsEqual(const ContentSettings& settings1,
29 const ContentSettings& settings2) { 29 const ContentSettings& settings2) {
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 kAllowedSite, kFirstPartySite, true)); 1252 kAllowedSite, kFirstPartySite, true));
1253 EXPECT_EQ(CONTENT_SETTING_ALLOW, 1253 EXPECT_EQ(CONTENT_SETTING_ALLOW,
1254 host_content_settings_map->GetCookieContentSetting( 1254 host_content_settings_map->GetCookieContentSetting(
1255 kAllowedSite, kAllowedSite, false)); 1255 kAllowedSite, kAllowedSite, false));
1256 EXPECT_EQ(CONTENT_SETTING_ALLOW, 1256 EXPECT_EQ(CONTENT_SETTING_ALLOW,
1257 host_content_settings_map->GetCookieContentSetting( 1257 host_content_settings_map->GetCookieContentSetting(
1258 kAllowedSite, kAllowedSite, true)); 1258 kAllowedSite, kAllowedSite, true));
1259 } 1259 }
1260 1260
1261 } // namespace 1261 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698