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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_manager_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/cloud/cloud_policy_manager.h" 5 #include "components/policy/core/common/cloud/cloud_policy_manager.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/sequenced_task_runner.h"
14 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 15 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
15 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" 16 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h"
16 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h" 17 #include "components/policy/core/common/cloud/mock_cloud_policy_store.h"
17 #include "components/policy/core/common/cloud/policy_builder.h" 18 #include "components/policy/core/common/cloud/policy_builder.h"
18 #include "components/policy/core/common/configuration_policy_provider_test.h" 19 #include "components/policy/core/common/configuration_policy_provider_test.h"
19 #include "components/policy/core/common/external_data_fetcher.h" 20 #include "components/policy/core/common/external_data_fetcher.h"
20 #include "components/policy/core/common/mock_configuration_policy_provider.h" 21 #include "components/policy/core/common/mock_configuration_policy_provider.h"
21 #include "components/policy/core/common/policy_types.h" 22 #include "components/policy/core/common/policy_types.h"
22 #include "components/policy/core/common/schema_registry.h" 23 #include "components/policy/core/common/schema_registry.h"
23 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 store_.policy_.reset(new em::PolicyData(policy_.policy_data())); 350 store_.policy_.reset(new em::PolicyData(policy_.policy_data()));
350 EXPECT_CALL(observer_, OnUpdatePolicy(manager_.get())); 351 EXPECT_CALL(observer_, OnUpdatePolicy(manager_.get()));
351 store_.NotifyStoreError(); 352 store_.NotifyStoreError();
352 Mock::VerifyAndClearExpectations(&observer_); 353 Mock::VerifyAndClearExpectations(&observer_);
353 354
354 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME)); 355 EXPECT_TRUE(manager_->IsInitializationComplete(POLICY_DOMAIN_CHROME));
355 } 356 }
356 357
357 } // namespace 358 } // namespace
358 } // namespace policy 359 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698