| 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 <string> | 7 #include <string> |
| 7 | 8 |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "components/policy/core/common/policy_details.h" | 11 #include "components/policy/core/common/policy_details.h" |
| 12 #include "components/policy/core/common/schema.h" | 12 #include "components/policy/core/common/schema.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 // This unittest tests the code generated by | 16 // This unittest tests the code generated by |
| 17 // chrome/tools/build/generate_policy_source.py. | 17 // chrome/tools/build/generate_policy_source.py. |
| 18 | 18 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 NULL); | 225 NULL); |
| 226 SetEnterpriseUsersDefaults(&policy_map); | 226 SetEnterpriseUsersDefaults(&policy_map); |
| 227 multiprof_behavior = | 227 multiprof_behavior = |
| 228 policy_map.GetValue(key::kChromeOsMultiProfileUserBehavior); | 228 policy_map.GetValue(key::kChromeOsMultiProfileUserBehavior); |
| 229 expected = base::StringValue("test_value"); | 229 expected = base::StringValue("test_value"); |
| 230 EXPECT_TRUE(expected.Equals(multiprof_behavior)); | 230 EXPECT_TRUE(expected.Equals(multiprof_behavior)); |
| 231 } | 231 } |
| 232 #endif | 232 #endif |
| 233 | 233 |
| 234 } // namespace policy | 234 } // namespace policy |
| OLD | NEW |