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

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

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 4 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 "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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 24 matching lines...) Expand all
35 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 35 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
36 #include "components/policy/core/common/cloud/cloud_policy_service.h" 36 #include "components/policy/core/common/cloud/cloud_policy_service.h"
37 #include "components/policy/core/common/cloud/mock_device_management_service.h" 37 #include "components/policy/core/common/cloud/mock_device_management_service.h"
38 #include "components/policy/core/common/cloud/policy_builder.h" 38 #include "components/policy/core/common/cloud/policy_builder.h"
39 #include "components/policy/core/common/external_data_fetcher.h" 39 #include "components/policy/core/common/external_data_fetcher.h"
40 #include "components/policy/core/common/mock_configuration_policy_provider.h" 40 #include "components/policy/core/common/mock_configuration_policy_provider.h"
41 #include "components/policy/core/common/policy_bundle.h" 41 #include "components/policy/core/common/policy_bundle.h"
42 #include "components/policy/core/common/policy_map.h" 42 #include "components/policy/core/common/policy_map.h"
43 #include "components/policy/core/common/policy_types.h" 43 #include "components/policy/core/common/policy_types.h"
44 #include "components/policy/core/common/schema_registry.h" 44 #include "components/policy/core/common/schema_registry.h"
45 #include "components/policy/policy_constants.h"
46 #include "components/policy/proto/cloud_policy.pb.h"
47 #include "components/policy/proto/device_management_backend.pb.h"
45 #include "net/url_request/url_request_context_getter.h" 48 #include "net/url_request/url_request_context_getter.h"
46 #include "net/url_request/url_request_test_util.h" 49 #include "net/url_request/url_request_test_util.h"
47 #include "policy/policy_constants.h"
48 #include "policy/proto/cloud_policy.pb.h"
49 #include "policy/proto/device_management_backend.pb.h"
50 #include "testing/gtest/include/gtest/gtest.h" 50 #include "testing/gtest/include/gtest/gtest.h"
51 51
52 using testing::AnyNumber; 52 using testing::AnyNumber;
53 using testing::AtLeast; 53 using testing::AtLeast;
54 using testing::Mock; 54 using testing::Mock;
55 using testing::SaveArg; 55 using testing::SaveArg;
56 using testing::_; 56 using testing::_;
57 57
58 namespace em = enterprise_management; 58 namespace em = enterprise_management;
59 59
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 em::DeviceManagementResponse response; 970 em::DeviceManagementResponse response;
971 device_local_account_policy_.Build(); 971 device_local_account_policy_.Build();
972 response.mutable_policy_response()->add_response()->CopyFrom( 972 response.mutable_policy_response()->add_response()->CopyFrom(
973 device_local_account_policy_.policy()); 973 device_local_account_policy_.policy());
974 request_job->SendResponse(DM_STATUS_SUCCESS, response); 974 request_job->SendResponse(DM_STATUS_SUCCESS, response);
975 FlushDeviceSettings(); 975 FlushDeviceSettings();
976 Mock::VerifyAndClearExpectations(&provider_observer_); 976 Mock::VerifyAndClearExpectations(&provider_observer_);
977 } 977 }
978 978
979 } // namespace policy 979 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698