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

Side by Side Diff: remoting/host/policy_hack/mock_policy_callback.h

Issue 722743003: Reporting of policy errors via host-offline-reason: part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and reopened to try memory trybots. Created 6 years, 1 month 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 #ifndef REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_ 5 #ifndef REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
6 #define REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_ 6 #define REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 namespace policy_hack { 14 namespace policy_hack {
15 15
16 class MockPolicyCallback { 16 class MockPolicyCallback {
17 public: 17 public:
18 MockPolicyCallback(); 18 MockPolicyCallback();
19 virtual ~MockPolicyCallback(); 19 virtual ~MockPolicyCallback();
20 20
21 MOCK_METHOD1(OnPolicyUpdatePtr, void(const base::DictionaryValue* policies)); 21 MOCK_METHOD1(OnPolicyUpdatePtr, void(const base::DictionaryValue* policies));
22 void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies); 22 void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies);
23 23
24 MOCK_METHOD0(OnPolicyErrorPtr, void());
25 void OnPolicyError();
26
24 private: 27 private:
25 DISALLOW_COPY_AND_ASSIGN(MockPolicyCallback); 28 DISALLOW_COPY_AND_ASSIGN(MockPolicyCallback);
26 }; 29 };
27 30
28 } // namespace policy_hack 31 } // namespace policy_hack
29 } // namespace remoting 32 } // namespace remoting
30 33
31 #endif // REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_ 34 #endif // REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
OLDNEW
« no previous file with comments | « remoting/host/policy_hack/fake_policy_watcher.cc ('k') | remoting/host/policy_hack/mock_policy_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698