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

Unified Diff: chrome/browser/chromeos/device/input_service_proxy_browsertest.cc

Issue 240583006: Added device types (bluetooth, usb, serio) to InputDeviceInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, slightly modified tests. Created 6 years, 8 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
« no previous file with comments | « no previous file | device/hid/input_service_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/device/input_service_proxy_browsertest.cc
diff --git a/chrome/browser/chromeos/device/input_service_proxy_browsertest.cc b/chrome/browser/chromeos/device/input_service_proxy_browsertest.cc
index be7e8ce1278f969d5998fb6d5f7bc52e343ce719..d55451d232e5b252f98a74d489664f548c0d2120 100644
--- a/chrome/browser/chromeos/device/input_service_proxy_browsertest.cc
+++ b/chrome/browser/chromeos/device/input_service_proxy_browsertest.cc
@@ -83,6 +83,7 @@ class TestObserver : public InputServiceProxy::Observer {
static bool Equals(const InputDeviceInfo& lhs, const InputDeviceInfo& rhs) {
return lhs.id == rhs.id && lhs.name == rhs.name &&
lhs.subsystem == rhs.subsystem &&
+ lhs.type == rhs.type &&
lhs.is_accelerometer == rhs.is_accelerometer &&
lhs.is_joystick == rhs.is_joystick && lhs.is_key == rhs.is_key &&
lhs.is_keyboard == rhs.is_keyboard && lhs.is_mouse == rhs.is_mouse &&
@@ -161,6 +162,7 @@ IN_PROC_BROWSER_TEST_F(InputServiceProxyTest, Simple) {
InputDeviceInfo keyboard;
keyboard.id = kKeyboardId;
keyboard.subsystem = InputServiceLinux::InputDeviceInfo::SUBSYSTEM_INPUT;
+ keyboard.type = InputServiceLinux::InputDeviceInfo::TYPE_USB;
keyboard.is_keyboard = true;
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE, base::Bind(&AddDevice, keyboard));
@@ -169,6 +171,7 @@ IN_PROC_BROWSER_TEST_F(InputServiceProxyTest, Simple) {
InputDeviceInfo mouse;
mouse.id = kMouseId;
mouse.subsystem = InputServiceLinux::InputDeviceInfo::SUBSYSTEM_INPUT;
+ mouse.type = InputServiceLinux::InputDeviceInfo::TYPE_BLUETOOTH;
mouse.is_mouse = true;
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE, base::Bind(&AddDevice, mouse));
« no previous file with comments | « no previous file | device/hid/input_service_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698