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

Side by Side Diff: remoting/host/linux/mock_x11_keyboard.h

Issue 2346643003: [Remoting Host] Handle text event characters that are not presented on the keyboard (Closed)
Patch Set: Merge ToT Created 4 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
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_LINUX_MOCK_X11_KEYBOARD_H_
6 #define REMOTING_HOST_LINUX_MOCK_X11_KEYBOARD_H_
7
8 #include <remoting/host/linux/x11_keyboard.h>
9 #include "base/macros.h"
10
11 #include "testing/gmock/include/gmock/gmock.h"
12
13 namespace remoting {
14
15 class MockX11Keyboard : public X11Keyboard {
Sergey Ulanov 2016/09/23 18:51:26 In this case I think the tests would be significan
Sergey Ulanov 2016/09/23 18:51:26 Put this class in x11_key_mapper_unittest.cc . It'
Yuwei 2016/09/26 17:57:19 Done.
Yuwei 2016/09/26 17:57:19 Done.
16 public:
17 MockX11Keyboard();
18 ~MockX11Keyboard() override;
19
20 MOCK_METHOD0(GetUnusedKeycodes, std::vector<uint32_t>());
21 MOCK_METHOD2(PressKey, void(uint32_t, uint32_t));
Sergey Ulanov 2016/09/23 18:51:27 add parameter names for all parameters
Yuwei 2016/09/26 17:57:19 Obsolete.
22 MOCK_METHOD3(FindKeycode, bool(uint32_t, uint32_t*, uint32_t*));
23 MOCK_METHOD2(ChangeKeyMapping, bool(uint32_t, uint32_t));
24
25 void Flush() override;
Sergey Ulanov 2016/09/23 18:51:26 If this is a Mock class, then it's best to mock al
Yuwei 2016/09/26 17:57:19 Obsolete.
26 void Sync() override;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(MockX11Keyboard);
30 };
31
32 } // namespace remoting
33 #endif // REMOTING_HOST_LINUX_MOCK_X11_KEYBOARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698