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

Side by Side Diff: remoting/host/local_input_monitor_unittest.cc

Issue 12207034: Linux/ChromeOS Chromium style checker cleanup, remoting/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « remoting/host/local_input_monitor_linux.cc ('k') | remoting/host/plugin/host_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "remoting/base/auto_thread_task_runner.h" 9 #include "remoting/base/auto_thread_task_runner.h"
10 #include "remoting/host/local_input_monitor.h" 10 #include "remoting/host/local_input_monitor.h"
11 #include "remoting/host/mouse_move_observer.h" 11 #include "remoting/host/mouse_move_observer.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/skia/include/core/SkPoint.h" 14 #include "third_party/skia/include/core/SkPoint.h"
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 using testing::_; 18 using testing::_;
19 using testing::AnyNumber; 19 using testing::AnyNumber;
20 20
21 namespace { 21 namespace {
22 22
23 class FakeMouseMoveObserver : public MouseMoveObserver { 23 class FakeMouseMoveObserver : public MouseMoveObserver {
24 public: 24 public:
25 FakeMouseMoveObserver() {} 25 FakeMouseMoveObserver() {}
26 virtual ~FakeMouseMoveObserver() {} 26 virtual ~FakeMouseMoveObserver() {}
27 27
28 // Ignore mouse events to avoid breaking the test of someone moves the mouse. 28 // Ignore mouse events to avoid breaking the test of someone moves the mouse.
29 void OnLocalMouseMoved(const SkIPoint&) {} 29 virtual void OnLocalMouseMoved(const SkIPoint&) OVERRIDE {}
30 void OnDisconnectCallback() {} 30 void OnDisconnectCallback() {}
31 }; 31 };
32 32
33 } // namespace 33 } // namespace
34 34
35 class LocalInputMonitorTest : public testing::Test { 35 class LocalInputMonitorTest : public testing::Test {
36 public: 36 public:
37 LocalInputMonitorTest() {} 37 LocalInputMonitorTest() {}
38 38
39 virtual void SetUp() OVERRIDE { 39 virtual void SetUp() OVERRIDE {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 local_input_monitor_->Start( 73 local_input_monitor_->Start(
74 &mouse_move_observer_, 74 &mouse_move_observer_,
75 base::Bind(&FakeMouseMoveObserver::OnDisconnectCallback, 75 base::Bind(&FakeMouseMoveObserver::OnDisconnectCallback,
76 base::Unretained(&mouse_move_observer_))); 76 base::Unretained(&mouse_move_observer_)));
77 77
78 task_runner_ = NULL; 78 task_runner_ = NULL;
79 run_loop_.Run(); 79 run_loop_.Run();
80 } 80 }
81 81
82 } // namespace remoting 82 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/local_input_monitor_linux.cc ('k') | remoting/host/plugin/host_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698