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

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

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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 (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 "components/policy/core/common/policy_loader_mac.h" 5 #include "components/policy/core/common/policy_loader_mac.h"
6 6
7 #include <CoreFoundation/CoreFoundation.h> 7 #include <CoreFoundation/CoreFoundation.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/mac/scoped_cftyperef.h" 13 #include "base/mac/scoped_cftyperef.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/sequenced_task_runner.h"
18 #include "base/strings/sys_string_conversions.h" 19 #include "base/strings/sys_string_conversions.h"
19 #include "base/values.h" 20 #include "base/values.h"
20 #include "components/policy/core/common/async_policy_provider.h" 21 #include "components/policy/core/common/async_policy_provider.h"
21 #include "components/policy/core/common/configuration_policy_provider_test.h" 22 #include "components/policy/core/common/configuration_policy_provider_test.h"
22 #include "components/policy/core/common/external_data_fetcher.h" 23 #include "components/policy/core/common/external_data_fetcher.h"
23 #include "components/policy/core/common/policy_bundle.h" 24 #include "components/policy/core/common/policy_bundle.h"
24 #include "components/policy/core/common/policy_map.h" 25 #include "components/policy/core/common/policy_map.h"
25 #include "components/policy/core/common/policy_test_utils.h" 26 #include "components/policy/core/common/policy_test_utils.h"
26 #include "components/policy/core/common/policy_types.h" 27 #include "components/policy/core/common/policy_types.h"
27 #include "components/policy/core/common/preferences_mock_mac.h" 28 #include "components/policy/core/common/preferences_mock_mac.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 base::RunLoop().RunUntilIdle(); 199 base::RunLoop().RunUntilIdle();
199 PolicyBundle expected_bundle; 200 PolicyBundle expected_bundle;
200 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) 201 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))
201 .Set(test_keys::kKeyString, POLICY_LEVEL_RECOMMENDED, POLICY_SCOPE_USER, 202 .Set(test_keys::kKeyString, POLICY_LEVEL_RECOMMENDED, POLICY_SCOPE_USER,
202 POLICY_SOURCE_PLATFORM, 203 POLICY_SOURCE_PLATFORM,
203 base::MakeUnique<base::Value>("string value"), nullptr); 204 base::MakeUnique<base::Value>("string value"), nullptr);
204 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); 205 EXPECT_TRUE(provider_->policies().Equals(expected_bundle));
205 } 206 }
206 207
207 } // namespace policy 208 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698