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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc

Issue 99333002: Revert of Move ConfigurationPolicyProvider, etc. to components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
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 "chrome/browser/chromeos/policy/device_local_account_policy_service.h" 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/chromeos/policy/device_local_account.h" 21 #include "chrome/browser/chromeos/policy/device_local_account.h"
22 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h" 22 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h"
23 #include "chrome/browser/chromeos/settings/cros_settings.h" 23 #include "chrome/browser/chromeos/settings/cros_settings.h"
24 #include "chrome/browser/chromeos/settings/device_settings_service.h" 24 #include "chrome/browser/chromeos/settings/device_settings_service.h"
25 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h" 25 #include "chrome/browser/chromeos/settings/device_settings_test_helper.h"
26 #include "chrome/browser/policy/cloud/cloud_policy_client.h" 26 #include "chrome/browser/policy/cloud/cloud_policy_client.h"
27 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" 27 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
28 #include "chrome/browser/policy/cloud/cloud_policy_service.h" 28 #include "chrome/browser/policy/cloud/cloud_policy_service.h"
29 #include "chrome/browser/policy/cloud/mock_device_management_service.h" 29 #include "chrome/browser/policy/cloud/mock_device_management_service.h"
30 #include "chrome/browser/policy/cloud/policy_builder.h" 30 #include "chrome/browser/policy/cloud/policy_builder.h"
31 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
31 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" 32 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h"
32 #include "chrome/common/chrome_paths.h" 33 #include "chrome/common/chrome_paths.h"
33 #include "chromeos/chromeos_paths.h" 34 #include "chromeos/chromeos_paths.h"
34 #include "chromeos/dbus/power_policy_controller.h" 35 #include "chromeos/dbus/power_policy_controller.h"
35 #include "components/policy/core/common/external_data_fetcher.h" 36 #include "components/policy/core/common/external_data_fetcher.h"
36 #include "components/policy/core/common/mock_configuration_policy_provider.h"
37 #include "components/policy/core/common/schema_registry.h" 37 #include "components/policy/core/common/schema_registry.h"
38 #include "net/url_request/url_request_context_getter.h" 38 #include "net/url_request/url_request_context_getter.h"
39 #include "policy/policy_constants.h" 39 #include "policy/policy_constants.h"
40 #include "policy/proto/cloud_policy.pb.h" 40 #include "policy/proto/cloud_policy.pb.h"
41 #include "testing/gtest/include/gtest/gtest.h" 41 #include "testing/gtest/include/gtest/gtest.h"
42 42
43 using testing::AnyNumber; 43 using testing::AnyNumber;
44 using testing::AtLeast; 44 using testing::AtLeast;
45 using testing::Mock; 45 using testing::Mock;
46 using testing::SaveArg; 46 using testing::SaveArg;
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 em::DeviceManagementResponse response; 942 em::DeviceManagementResponse response;
943 device_local_account_policy_.Build(); 943 device_local_account_policy_.Build();
944 response.mutable_policy_response()->add_response()->CopyFrom( 944 response.mutable_policy_response()->add_response()->CopyFrom(
945 device_local_account_policy_.policy()); 945 device_local_account_policy_.policy());
946 request_job->SendResponse(DM_STATUS_SUCCESS, response); 946 request_job->SendResponse(DM_STATUS_SUCCESS, response);
947 FlushDeviceSettings(); 947 FlushDeviceSettings();
948 Mock::VerifyAndClearExpectations(&provider_observer_); 948 Mock::VerifyAndClearExpectations(&provider_observer_);
949 } 949 }
950 950
951 } // namespace policy 951 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698