• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The ChromiumOS Authors
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 TRUNKS_MOCK_COMMAND_TRANSCEIVER_H_
6 #define TRUNKS_MOCK_COMMAND_TRANSCEIVER_H_
7 
8 #include <string>
9 
10 #include <gmock/gmock.h>
11 
12 #include "command_transceiver.h"
13 
14 namespace trunks {
15 
16 class MockCommandTransceiver : public CommandTransceiver {
17  public:
18   MockCommandTransceiver();
19   MockCommandTransceiver(const MockCommandTransceiver&) = delete;
20   MockCommandTransceiver& operator=(const MockCommandTransceiver&) = delete;
21 
22   ~MockCommandTransceiver() override;
23 
24   MOCK_METHOD2(SendCommand, void(const std::string&, ResponseCallback));
25   MOCK_METHOD1(SendCommandAndWait, std::string(const std::string&));
26 };
27 
28 }  // namespace trunks
29 
30 #endif  // TRUNKS_MOCK_COMMAND_TRANSCEIVER_H_
31