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

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

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias Created 4 years, 8 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 <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
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
OLDNEW
« no previous file with comments | « components/policy/core/common/fake_async_policy_loader.cc ('k') | components/policy/core/common/mac_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698