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

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

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "chrome/browser/chromeos/policy/proxy_policy_provider.h"
6 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 7 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
7 #include "chrome/browser/policy/proxy_policy_provider.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 using testing::Mock; 11 using testing::Mock;
12 12
13 namespace policy { 13 namespace policy {
14 14
15 class ProxyPolicyProviderTest : public testing::Test { 15 class ProxyPolicyProviderTest : public testing::Test {
16 protected: 16 protected:
17 ProxyPolicyProviderTest() { 17 ProxyPolicyProviderTest() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 proxy_provider_.RefreshPolicies(); 87 proxy_provider_.RefreshPolicies();
88 Mock::VerifyAndClearExpectations(&observer_); 88 Mock::VerifyAndClearExpectations(&observer_);
89 Mock::VerifyAndClearExpectations(&mock_provider_); 89 Mock::VerifyAndClearExpectations(&mock_provider_);
90 90
91 EXPECT_CALL(observer_, OnUpdatePolicy(&proxy_provider_)); 91 EXPECT_CALL(observer_, OnUpdatePolicy(&proxy_provider_));
92 mock_provider_.UpdatePolicy(scoped_ptr<PolicyBundle>(new PolicyBundle())); 92 mock_provider_.UpdatePolicy(scoped_ptr<PolicyBundle>(new PolicyBundle()));
93 Mock::VerifyAndClearExpectations(&observer_); 93 Mock::VerifyAndClearExpectations(&observer_);
94 } 94 }
95 95
96 } // namespace policy 96 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698