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

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

Issue 1658793002: Update chrome for new prefs location. (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 (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/browser/content_settings/content_settings_supervised_provider.h " 5 #include "chrome/browser/content_settings/content_settings_supervised_provider.h "
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/prefs/testing_pref_store.h"
11 #include "chrome/browser/content_settings/content_settings_mock_observer.h" 10 #include "chrome/browser/content_settings/content_settings_mock_observer.h"
12 #include "chrome/browser/supervised_user/supervised_user_constants.h" 11 #include "chrome/browser/supervised_user/supervised_user_constants.h"
13 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" 12 #include "chrome/browser/supervised_user/supervised_user_settings_service.h"
14 #include "components/content_settings/core/browser/content_settings_rule.h" 13 #include "components/content_settings/core/browser/content_settings_rule.h"
15 #include "components/content_settings/core/browser/content_settings_utils.h" 14 #include "components/content_settings/core/browser/content_settings_utils.h"
15 #include "components/prefs/testing_pref_store.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using ::testing::_; 18 using ::testing::_;
19 19
20 namespace content_settings { 20 namespace content_settings {
21 21
22 class SupervisedUserProviderTest : public ::testing::Test { 22 class SupervisedUserProviderTest : public ::testing::Test {
23 public: 23 public:
24 SupervisedUserProviderTest() : service_(nullptr) {} 24 SupervisedUserProviderTest() : service_(nullptr) {}
25 25
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 rule_iterator = provider_->GetRuleIterator( 141 rule_iterator = provider_->GetRuleIterator(
142 CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, std::string(), false); 142 CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA, std::string(), false);
143 EXPECT_FALSE(rule_iterator->HasNext()); 143 EXPECT_FALSE(rule_iterator->HasNext());
144 rule_iterator.reset(); 144 rule_iterator.reset();
145 rule_iterator = provider_->GetRuleIterator( 145 rule_iterator = provider_->GetRuleIterator(
146 CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, std::string(), false); 146 CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, std::string(), false);
147 EXPECT_FALSE(rule_iterator->HasNext()); 147 EXPECT_FALSE(rule_iterator->HasNext());
148 } 148 }
149 149
150 } // namespace content_settings 150 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698