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

Side by Side Diff: remoting/host/setup/mock_daemon_controller.h

Issue 14979008: unittests for Chromoting native messaging host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some clang-format fixes Created 7 years, 7 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
Sergey Ulanov 2013/05/18 01:59:31 nit: 2013
Lambros 2013/05/22 21:42:18 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_SETUP_MOCK_DAEMON_CONTROLLER_H_
6 #define REMOTING_HOST_SETUP_MOCK_DAEMON_CONTROLLER_H_
7
8 #include "base/basictypes.h"
9 #include "remoting/host/setup/daemon_controller.h"
10
11 namespace remoting {
12
13 class MockDaemonController : public DaemonController {
Sergey Ulanov 2013/05/18 01:59:31 This class is used in only one place, so maybe mov
Lambros 2013/05/22 21:42:18 Moved mock class into unittest.cc. I'm not sure if
14 public:
15 MockDaemonController();
16 virtual ~MockDaemonController();
17
18 virtual State GetState() OVERRIDE;
19 virtual void GetConfig(const GetConfigCallback& callback) OVERRIDE;
20 virtual void SetConfigAndStart(scoped_ptr<base::DictionaryValue> config,
21 bool consent,
22 const CompletionCallback& callback) OVERRIDE;
23 virtual void UpdateConfig(scoped_ptr<base::DictionaryValue> config,
24 const CompletionCallback& callback) OVERRIDE;
25 virtual void Stop(const CompletionCallback& callback) OVERRIDE;
26 virtual void SetWindow(void* window_handle) OVERRIDE;
27 virtual void GetVersion(const GetVersionCallback& callback) OVERRIDE;
28 virtual void GetUsageStatsConsent(
29 const GetUsageStatsConsentCallback& callback) OVERRIDE;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MockDaemonController);
33 };
34
35 } // namespace remoting
36
37 #endif // REMOTING_HOST_SETUP_MOCK_DAEMON_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/setup/mock_daemon_controller.cc » ('j') | remoting/host/setup/native_messaging_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698