OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <cstring> | 5 #include <cstring> |
6 #include <memory> | 6 #include <memory> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "components/policy/core/common/policy_details.h" | 12 #include "components/policy/core/common/policy_details.h" |
13 #include "components/policy/core/common/schema.h" | 13 #include "components/policy/core/common/schema.h" |
14 #include "policy/policy_constants.h" | 14 #include "components/policy/policy_constants.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 // This unittest tests the code generated by | 17 // This unittest tests the code generated by |
18 // chrome/tools/build/generate_policy_source.py. | 18 // chrome/tools/build/generate_policy_source.py. |
19 | 19 |
20 namespace policy { | 20 namespace policy { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 #if defined(OS_CHROMEOS) | 24 #if defined(OS_CHROMEOS) |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 nullptr); | 224 nullptr); |
225 SetEnterpriseUsersDefaults(&policy_map); | 225 SetEnterpriseUsersDefaults(&policy_map); |
226 multiprof_behavior = | 226 multiprof_behavior = |
227 policy_map.GetValue(key::kChromeOsMultiProfileUserBehavior); | 227 policy_map.GetValue(key::kChromeOsMultiProfileUserBehavior); |
228 expected = base::StringValue("test_value"); | 228 expected = base::StringValue("test_value"); |
229 EXPECT_TRUE(expected.Equals(multiprof_behavior)); | 229 EXPECT_TRUE(expected.Equals(multiprof_behavior)); |
230 } | 230 } |
231 #endif | 231 #endif |
232 | 232 |
233 } // namespace policy | 233 } // namespace policy |
OLD | NEW |