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

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

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 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
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/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
11 #include "base/prefs/scoped_user_pref_update.h" 11 #include "base/prefs/scoped_user_pref_update.h"
12 #include "chrome/browser/content_settings/content_settings_mock_observer.h" 12 #include "chrome/browser/content_settings/content_settings_mock_observer.h"
13 #include "chrome/browser/content_settings/cookie_settings_factory.h" 13 #include "chrome/browser/content_settings/cookie_settings_factory.h"
14 #include "chrome/browser/content_settings/mock_settings_observer.h" 14 #include "chrome/browser/content_settings/mock_settings_observer.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_pref_service_syncable.h"
18 #include "chrome/test/base/testing_profile.h" 17 #include "chrome/test/base/testing_profile.h"
19 #include "components/content_settings/core/browser/content_settings_details.h" 18 #include "components/content_settings/core/browser/content_settings_details.h"
20 #include "components/content_settings/core/browser/cookie_settings.h" 19 #include "components/content_settings/core/browser/cookie_settings.h"
21 #include "components/content_settings/core/browser/host_content_settings_map.h" 20 #include "components/content_settings/core/browser/host_content_settings_map.h"
22 #include "components/content_settings/core/browser/website_settings_info.h" 21 #include "components/content_settings/core/browser/website_settings_info.h"
23 #include "components/content_settings/core/browser/website_settings_registry.h" 22 #include "components/content_settings/core/browser/website_settings_registry.h"
23 #include "components/syncable_prefs/testing_pref_service_syncable.h"
24 #include "content/public/test/test_browser_thread.h" 24 #include "content/public/test/test_browser_thread.h"
25 #include "net/base/static_cookie_policy.h" 25 #include "net/base/static_cookie_policy.h"
26 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
27 #include "url/gurl.h" 27 #include "url/gurl.h"
28 28
29 using content::BrowserThread; 29 using content::BrowserThread;
30 30
31 using ::testing::_; 31 using ::testing::_;
32 32
33 class HostContentSettingsMapTest : public testing::Test { 33 class HostContentSettingsMapTest : public testing::Test {
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 EXPECT_EQ(CONTENT_SETTING_ALLOW, 1010 EXPECT_EQ(CONTENT_SETTING_ALLOW,
1011 host_content_settings_map->GetContentSetting( 1011 host_content_settings_map->GetContentSetting(
1012 host, host, CONTENT_SETTINGS_TYPE_IMAGES, std::string())); 1012 host, host, CONTENT_SETTINGS_TYPE_IMAGES, std::string()));
1013 host_content_settings_map->SetContentSetting( 1013 host_content_settings_map->SetContentSetting(
1014 pattern, 1014 pattern,
1015 ContentSettingsPattern::Wildcard(), 1015 ContentSettingsPattern::Wildcard(),
1016 CONTENT_SETTINGS_TYPE_IMAGES, 1016 CONTENT_SETTINGS_TYPE_IMAGES,
1017 std::string(), 1017 std::string(),
1018 CONTENT_SETTING_DEFAULT); 1018 CONTENT_SETTING_DEFAULT);
1019 } 1019 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698