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

Side by Side Diff: components/policy/core/common/policy_bundle_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 "components/policy/core/common/policy_bundle.h" 5 #include "components/policy/core/common/policy_bundle.h"
6 6
7 #include <memory>
8
7 #include "base/callback.h" 9 #include "base/callback.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 10 #include "base/values.h"
10 #include "components/policy/core/common/external_data_fetcher.h" 11 #include "components/policy/core/common/external_data_fetcher.h"
11 #include "components/policy/core/common/policy_map.h" 12 #include "components/policy/core/common/policy_map.h"
12 #include "components/policy/core/common/policy_types.h" 13 #include "components/policy/core/common/policy_types.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 namespace policy { 16 namespace policy {
16 17
17 namespace { 18 namespace {
18 19
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 policy_map.Set(kPolicy0, 299 policy_map.Set(kPolicy0,
299 POLICY_LEVEL_MANDATORY, 300 POLICY_LEVEL_MANDATORY,
300 POLICY_SCOPE_USER, 301 POLICY_SCOPE_USER,
301 POLICY_SOURCE_CLOUD, 302 POLICY_SOURCE_CLOUD,
302 new base::FundamentalValue(123), 303 new base::FundamentalValue(123),
303 NULL); 304 NULL);
304 EXPECT_FALSE(bundle.Equals(other)); 305 EXPECT_FALSE(bundle.Equals(other));
305 } 306 }
306 307
307 } // namespace policy 308 } // namespace policy
OLDNEW
« no previous file with comments | « components/policy/core/common/mock_configuration_policy_provider.cc ('k') | components/policy/core/common/policy_loader_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698