| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/prefs/pref_value_map.h" | |
| 7 #include "base/values.h" | 6 #include "base/values.h" |
| 8 #include "components/policy/core/browser/policy_error_map.h" | 7 #include "components/policy/core/browser/policy_error_map.h" |
| 9 #include "components/policy/core/browser/url_blacklist_policy_handler.h" | 8 #include "components/policy/core/browser/url_blacklist_policy_handler.h" |
| 10 #include "components/policy/core/common/policy_map.h" | 9 #include "components/policy/core/common/policy_map.h" |
| 11 #include "components/policy/core/common/policy_pref_names.h" | 10 #include "components/policy/core/common/policy_pref_names.h" |
| 12 #include "components/policy/core/common/policy_types.h" | 11 #include "components/policy/core/common/policy_types.h" |
| 12 #include "components/prefs/pref_value_map.h" |
| 13 #include "policy/policy_constants.h" | 13 #include "policy/policy_constants.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 // Note: this file should move to components/policy/core/browser, but the | 16 // Note: this file should move to components/policy/core/browser, but the |
| 17 // components_unittests runner does not load the ResourceBundle as | 17 // components_unittests runner does not load the ResourceBundle as |
| 18 // ChromeTestSuite::Initialize does, which leads to failures using | 18 // ChromeTestSuite::Initialize does, which leads to failures using |
| 19 // PolicyErrorMap. | 19 // PolicyErrorMap. |
| 20 | 20 |
| 21 namespace policy { | 21 namespace policy { |
| 22 | 22 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 std::string out1; | 212 std::string out1; |
| 213 EXPECT_TRUE(out_list->GetString(0U, &out1)); | 213 EXPECT_TRUE(out_list->GetString(0U, &out1)); |
| 214 EXPECT_EQ(kTestDisabledScheme + std::string("://*"), out1); | 214 EXPECT_EQ(kTestDisabledScheme + std::string("://*"), out1); |
| 215 | 215 |
| 216 std::string out2; | 216 std::string out2; |
| 217 EXPECT_TRUE(out_list->GetString(1U, &out2)); | 217 EXPECT_TRUE(out_list->GetString(1U, &out2)); |
| 218 EXPECT_EQ(kTestBlacklistValue, out2); | 218 EXPECT_EQ(kTestBlacklistValue, out2); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace policy | 221 } // namespace policy |
| OLD | NEW |