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

Side by Side Diff: components/policy/core/common/policy_loader_ios_unittest.mm

Issue 940033003: Cleanup iOS upstreamed code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dom_distiller
Patch Set: Rebase Created 5 years, 10 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
« no previous file with comments | « base/ios/device_util_unittest.mm ('k') | ios/chrome/browser/snapshots/snapshot_cache.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <UIKit/UIKit.h> 5 #include <UIKit/UIKit.h>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/ios/ios_util.h"
11 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
12 #include "base/test/test_simple_task_runner.h" 11 #include "base/test/test_simple_task_runner.h"
13 #include "base/values.h" 12 #include "base/values.h"
14 #include "components/policy/core/common/async_policy_provider.h" 13 #include "components/policy/core/common/async_policy_provider.h"
15 #include "components/policy/core/common/configuration_policy_provider_test.h" 14 #include "components/policy/core/common/configuration_policy_provider_test.h"
16 #include "components/policy/core/common/policy_bundle.h" 15 #include "components/policy/core/common/policy_bundle.h"
17 #include "components/policy/core/common/policy_loader_ios.h" 16 #include "components/policy/core/common/policy_loader_ios.h"
18 #include "components/policy/core/common/policy_map.h" 17 #include "components/policy/core/common/policy_map.h"
19 #include "components/policy/core/common/policy_test_utils.h" 18 #include "components/policy/core/common/policy_test_utils.h"
20 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 257
259 scoped_refptr<base::TestSimpleTaskRunner> taskRunner = 258 scoped_refptr<base::TestSimpleTaskRunner> taskRunner =
260 new base::TestSimpleTaskRunner(); 259 new base::TestSimpleTaskRunner();
261 PolicyLoaderIOS loader(taskRunner); 260 PolicyLoaderIOS loader(taskRunner);
262 scoped_ptr<PolicyBundle> bundle = loader.Load(); 261 scoped_ptr<PolicyBundle> bundle = loader.Load();
263 ASSERT_TRUE(bundle); 262 ASSERT_TRUE(bundle);
264 EXPECT_TRUE(bundle->Equals(expected)); 263 EXPECT_TRUE(bundle->Equals(expected));
265 } 264 }
266 265
267 } // namespace policy 266 } // namespace policy
OLDNEW
« no previous file with comments | « base/ios/device_util_unittest.mm ('k') | ios/chrome/browser/snapshots/snapshot_cache.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698