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

Side by Side Diff: remoting/client/key_event_mapper_unittest.cc

Issue 1197853003: Add P2PDatagramSocket and P2PStreamSocket interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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 "remoting/client/key_event_mapper.h" 5 #include "remoting/client/key_event_mapper.h"
6 6
7 #include "base/bind.h"
7 #include "remoting/proto/event.pb.h" 8 #include "remoting/proto/event.pb.h"
8 #include "remoting/protocol/protocol_mock_objects.h" 9 #include "remoting/protocol/protocol_mock_objects.h"
9 #include "remoting/protocol/test_event_matchers.h" 10 #include "remoting/protocol/test_event_matchers.h"
10 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 using ::testing::_; 14 using ::testing::_;
14 using ::testing::ExpectationSet; 15 using ::testing::ExpectationSet;
15 using ::testing::InSequence; 16 using ::testing::InSequence;
16 17
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 InjectKeyEvent(EqualsKeyEventWithCapsLock(4, false))); 136 InjectKeyEvent(EqualsKeyEventWithCapsLock(4, false)));
136 EXPECT_CALL(trap_stub, InjectKeyEvent(EqualsKeyEventWithCapsLock(5, true))); 137 EXPECT_CALL(trap_stub, InjectKeyEvent(EqualsKeyEventWithCapsLock(5, true)));
137 EXPECT_CALL(trap_stub, 138 EXPECT_CALL(trap_stub,
138 InjectKeyEvent(EqualsKeyEventWithCapsLock(5, false))); 139 InjectKeyEvent(EqualsKeyEventWithCapsLock(5, false)));
139 } 140 }
140 141
141 InjectTestSequence(&event_mapper); 142 InjectTestSequence(&event_mapper);
142 } 143 }
143 144
144 } // namespace remoting 145 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/base/buffered_socket_writer_unittest.cc ('k') | remoting/protocol/authenticator_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698