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

Side by Side Diff: components/content_settings/core/browser/website_settings_registry_unittest.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/logging.h" 5 #include "base/logging.h"
6 #include "base/prefs/pref_registry.h"
6 #include "base/values.h" 7 #include "base/values.h"
7 #include "components/content_settings/core/browser/website_settings_info.h" 8 #include "components/content_settings/core/browser/website_settings_info.h"
8 #include "components/content_settings/core/browser/website_settings_registry.h" 9 #include "components/content_settings/core/browser/website_settings_registry.h"
9 #include "components/content_settings/core/common/content_settings.h" 10 #include "components/content_settings/core/common/content_settings.h"
10 #include "components/content_settings/core/common/content_settings_types.h" 11 #include "components/content_settings/core/common/content_settings_types.h"
11 #include "components/pref_registry/pref_registry_syncable.h" 12 #include "components/pref_registry/pref_registry_syncable.h"
12 #include "components/prefs/pref_registry.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace content_settings { 15 namespace content_settings {
16 16
17 class WebsiteSettingsRegistryTest : public testing::Test { 17 class WebsiteSettingsRegistryTest : public testing::Test {
18 protected: 18 protected:
19 WebsiteSettingsRegistry* registry() { return &registry_; } 19 WebsiteSettingsRegistry* registry() { return &registry_; }
20 20
21 private: 21 private:
22 WebsiteSettingsRegistry registry_; 22 WebsiteSettingsRegistry registry_;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if (info->type() == 10) { 100 if (info->type() == 10) {
101 EXPECT_FALSE(found); 101 EXPECT_FALSE(found);
102 found = true; 102 found = true;
103 } 103 }
104 } 104 }
105 105
106 EXPECT_TRUE(found); 106 EXPECT_TRUE(found);
107 } 107 }
108 108
109 } // namespace content_settings 109 } // namespace content_settings
OLDNEW
« no previous file with comments | « components/content_settings/core/browser/website_settings_info.cc ('k') | components/cronet/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698