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

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

Powered by Google App Engine
This is Rietveld 408576698