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

Side by Side Diff: chrome/browser/policy/cloud/cloud_policy_service_unittest.cc

Issue 14008005: Move proto files back into chrome/browser/policy/proto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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/policy/cloud/cloud_policy_service.h" 5 #include "chrome/browser/policy/cloud/cloud_policy_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" 9 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
10 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h" 10 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h"
11 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h" 11 #include "chrome/browser/policy/cloud/mock_cloud_policy_store.h"
12 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" 12 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace em = enterprise_management; 16 namespace em = enterprise_management;
17 17
18 using testing::_; 18 using testing::_;
19 19
20 namespace policy { 20 namespace policy {
21 21
22 class MockCloudPolicyServiceObserver : public CloudPolicyService::Observer { 22 class MockCloudPolicyServiceObserver : public CloudPolicyService::Observer {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 testing::Mock::VerifyAndClearExpectations(&observer); 228 testing::Mock::VerifyAndClearExpectations(&observer);
229 229
230 // Now, the next time the store is loaded, the observer should not be called 230 // Now, the next time the store is loaded, the observer should not be called
231 // again. 231 // again.
232 EXPECT_CALL(observer, OnInitializationCompleted(&service_)).Times(0); 232 EXPECT_CALL(observer, OnInitializationCompleted(&service_)).Times(0);
233 store_.NotifyStoreLoaded(); 233 store_.NotifyStoreLoaded();
234 service_.RemoveObserver(&observer); 234 service_.RemoveObserver(&observer);
235 } 235 }
236 236
237 } // namespace policy 237 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_service.cc ('k') | chrome/browser/policy/cloud/cloud_policy_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698