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

Side by Side Diff: components/policy/core/common/generate_policy_source_unittest.cc

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 3 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 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
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
OLDNEW
« no previous file with comments | « components/policy/core/common/config_dir_policy_loader.cc ('k') | components/policy/core/common/policy_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698