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

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

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream 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/run_loop.h" 17 #include "base/run_loop.h"
17 #include "base/strings/sys_string_conversions.h" 18 #include "base/strings/sys_string_conversions.h"
18 #include "base/values.h" 19 #include "base/values.h"
19 #include "components/policy/core/common/async_policy_provider.h" 20 #include "components/policy/core/common/async_policy_provider.h"
20 #include "components/policy/core/common/configuration_policy_provider_test.h" 21 #include "components/policy/core/common/configuration_policy_provider_test.h"
21 #include "components/policy/core/common/external_data_fetcher.h" 22 #include "components/policy/core/common/external_data_fetcher.h"
22 #include "components/policy/core/common/policy_bundle.h" 23 #include "components/policy/core/common/policy_bundle.h"
23 #include "components/policy/core/common/policy_map.h" 24 #include "components/policy/core/common/policy_map.h"
24 #include "components/policy/core/common/policy_test_utils.h" 25 #include "components/policy/core/common/policy_test_utils.h"
25 #include "components/policy/core/common/policy_types.h" 26 #include "components/policy/core/common/policy_types.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 base::RunLoop().RunUntilIdle(); 198 base::RunLoop().RunUntilIdle();
198 PolicyBundle expected_bundle; 199 PolicyBundle expected_bundle;
199 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string())) 200 expected_bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))
200 .Set(test_keys::kKeyString, POLICY_LEVEL_RECOMMENDED, POLICY_SCOPE_USER, 201 .Set(test_keys::kKeyString, POLICY_LEVEL_RECOMMENDED, POLICY_SCOPE_USER,
201 POLICY_SOURCE_PLATFORM, 202 POLICY_SOURCE_PLATFORM,
202 base::MakeUnique<base::Value>("string value"), nullptr); 203 base::MakeUnique<base::Value>("string value"), nullptr);
203 EXPECT_TRUE(provider_->policies().Equals(expected_bundle)); 204 EXPECT_TRUE(provider_->policies().Equals(expected_bundle));
204 } 205 }
205 206
206 } // namespace policy 207 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698