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

Side by Side Diff: components/policy/core/common/cloud/component_cloud_policy_service_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/cloud/component_cloud_policy_service.h" 5 #include "components/policy/core/common/cloud/component_cloud_policy_service.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.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/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
18 #include "base/stl_util.h" 19 #include "base/stl_util.h"
19 #include "base/values.h" 20 #include "base/values.h"
20 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 21 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
21 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" 22 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h"
22 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" 23 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h"
23 #include "components/policy/core/common/cloud/policy_builder.h" 24 #include "components/policy/core/common/cloud/policy_builder.h"
24 #include "components/policy/core/common/cloud/resource_cache.h" 25 #include "components/policy/core/common/cloud/resource_cache.h"
25 #include "components/policy/core/common/external_data_fetcher.h" 26 #include "components/policy/core/common/external_data_fetcher.h"
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 RunUntilIdle(); 696 RunUntilIdle();
696 Mock::VerifyAndClearExpectations(&delegate_); 697 Mock::VerifyAndClearExpectations(&delegate_);
697 698
698 // The policy is now being served. 699 // The policy is now being served.
699 PolicyBundle expected_bundle; 700 PolicyBundle expected_bundle;
700 expected_bundle.Get(kTestExtensionNS).CopyFrom(expected_policy_); 701 expected_bundle.Get(kTestExtensionNS).CopyFrom(expected_policy_);
701 EXPECT_TRUE(service_->policy().Equals(expected_bundle)); 702 EXPECT_TRUE(service_->policy().Equals(expected_bundle));
702 } 703 }
703 704
704 } // namespace policy 705 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698