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

Unified Diff: media/base/user_input_monitor_unittest.cc

Issue 2391673002: Use FileDescriptorWatcher in UserInputMonitorLinuxCore. (Closed)
Patch Set: fix test error 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 side-by-side diff with in-line comments
Download patch
Index: media/base/user_input_monitor_unittest.cc
diff --git a/media/base/user_input_monitor_unittest.cc b/media/base/user_input_monitor_unittest.cc
index 75fc2f63c2dbc87b9954efa4217e0022c4b2ceca..cf58882e306eb87e4cdfa0683fee28e440074fcb 100644
--- a/media/base/user_input_monitor_unittest.cc
+++ b/media/base/user_input_monitor_unittest.cc
@@ -15,6 +15,10 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkPoint.h"
+#if defined(OS_POSIX)
liberato (no reviews please) 2016/10/04 17:29:20 line 55 checks OS_LINUX. probably this should be
fdoray 2016/10/05 13:40:14 Done.
+#include "base/files/file_descriptor_watcher_posix.h"
+#endif
+
namespace media {
class MockMouseListener : public UserInputMonitor::MouseEventListener {
@@ -50,6 +54,7 @@ TEST(UserInputMonitorTest, KeyPressCounter) {
TEST(UserInputMonitorTest, CreatePlatformSpecific) {
#if defined(OS_LINUX)
base::MessageLoopForIO message_loop;
+ base::FileDescriptorWatcher file_descriptor_watcher(&message_loop);
#else
base::MessageLoopForUI message_loop;
#endif // defined(OS_LINUX)
« media/base/user_input_monitor_linux.cc ('K') | « media/base/user_input_monitor_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698