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

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

Issue 1100223002: Update {virtual,override} to follow C++11 style in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 }; 108 };
109 109
110 class DeviceLocalAccountPolicyServiceTest 110 class DeviceLocalAccountPolicyServiceTest
111 : public DeviceLocalAccountPolicyServiceTestBase { 111 : public DeviceLocalAccountPolicyServiceTestBase {
112 public: 112 public:
113 MOCK_METHOD1(OnRefreshDone, void(bool)); 113 MOCK_METHOD1(OnRefreshDone, void(bool));
114 114
115 protected: 115 protected:
116 DeviceLocalAccountPolicyServiceTest(); 116 DeviceLocalAccountPolicyServiceTest();
117 117
118 virtual void SetUp() override; 118 void SetUp() override;
119 virtual void TearDown() override; 119 void TearDown() override;
120 120
121 void InstallDevicePolicy() override; 121 void InstallDevicePolicy() override;
122 122
123 MockDeviceLocalAccountPolicyServiceObserver service_observer_; 123 MockDeviceLocalAccountPolicyServiceObserver service_observer_;
124 124
125 private: 125 private:
126 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyServiceTest); 126 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountPolicyServiceTest);
127 }; 127 };
128 128
129 DeviceLocalAccountPolicyServiceTestBase:: 129 DeviceLocalAccountPolicyServiceTestBase::
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 em::DeviceManagementResponse response; 978 em::DeviceManagementResponse response;
979 device_local_account_policy_.Build(); 979 device_local_account_policy_.Build();
980 response.mutable_policy_response()->add_response()->CopyFrom( 980 response.mutable_policy_response()->add_response()->CopyFrom(
981 device_local_account_policy_.policy()); 981 device_local_account_policy_.policy());
982 request_job->SendResponse(DM_STATUS_SUCCESS, response); 982 request_job->SendResponse(DM_STATUS_SUCCESS, response);
983 FlushDeviceSettings(); 983 FlushDeviceSettings();
984 Mock::VerifyAndClearExpectations(&provider_observer_); 984 Mock::VerifyAndClearExpectations(&provider_observer_);
985 } 985 }
986 986
987 } // namespace policy 987 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698