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

Side by Side Diff: chrome/browser/policy/policy_loader_mac_unittest.cc

Issue 16254003: WIP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/policy/policy_loader_mac.cc ('k') | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <CoreFoundation/CoreFoundation.h> 5 #include <CoreFoundation/CoreFoundation.h>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/mac/scoped_cftyperef.h" 8 #include "base/mac/scoped_cftyperef.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/policy/async_policy_provider.h" 11 #include "chrome/browser/policy/async_policy_provider.h"
12 #include "chrome/browser/policy/configuration_policy_provider_test.h" 12 #include "chrome/browser/policy/configuration_policy_provider_test.h"
13 #include "chrome/browser/policy/policy_bundle.h" 13 #include "chrome/browser/policy/policy_bundle.h"
14 #include "chrome/browser/policy/policy_loader_mac.h" 14 #include "chrome/browser/policy/policy_loader_mac.h"
15 #include "chrome/browser/policy/policy_map.h" 15 #include "chrome/browser/policy/policy_map.h"
16 #include "chrome/browser/policy/policy_namespace.h"
16 #include "chrome/browser/policy/preferences_mock_mac.h" 17 #include "chrome/browser/policy/preferences_mock_mac.h"
17 #include "policy/policy_constants.h" 18 #include "policy/policy_constants.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 20
20 using base::mac::ScopedCFTypeRef; 21 using base::mac::ScopedCFTypeRef;
21 22
22 namespace policy { 23 namespace policy {
23 24
24 namespace { 25 namespace {
25 26
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 ScopedCFTypeRef<CFPropertyListRef> property(CreatePropertyFromValue(&root)); 327 ScopedCFTypeRef<CFPropertyListRef> property(CreatePropertyFromValue(&root));
327 ASSERT_TRUE(property); 328 ASSERT_TRUE(property);
328 scoped_ptr<base::Value> value( 329 scoped_ptr<base::Value> value(
329 PolicyLoaderMac::CreateValueFromProperty(property)); 330 PolicyLoaderMac::CreateValueFromProperty(property));
330 ASSERT_TRUE(value.get()); 331 ASSERT_TRUE(value.get());
331 332
332 EXPECT_TRUE(root.Equals(value.get())); 333 EXPECT_TRUE(root.Equals(value.get()));
333 } 334 }
334 335
335 } // namespace policy 336 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_loader_mac.cc ('k') | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698