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

Unified Diff: ui/events/test/events_test_utils_x11.cc

Issue 1071193002: Change device IDs from unsigned to signed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check for negative IDs Created 5 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 | « ui/events/test/events_test_utils_x11.h ('k') | ui/events/x/events_x_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/events_test_utils_x11.cc
diff --git a/ui/events/test/events_test_utils_x11.cc b/ui/events/test/events_test_utils_x11.cc
index 3405b7036d6b953f65d0889c54c40bf52b70e18c..67eec36084d3cd61b673d47e8c661ca46cd9d190 100644
--- a/ui/events/test/events_test_utils_x11.cc
+++ b/ui/events/test/events_test_utils_x11.cc
@@ -286,19 +286,19 @@ void ScopedXI2Event::SetUpValuators(const std::vector<Valuator>& valuators) {
}
}
-void SetUpTouchPadForTest(unsigned int deviceid) {
- std::vector<unsigned int> device_list;
+void SetUpTouchPadForTest(int deviceid) {
+ std::vector<int> device_list;
device_list.push_back(deviceid);
TouchFactory::GetInstance()->SetPointerDeviceForTest(device_list);
ui::DeviceDataManagerX11* manager = ui::DeviceDataManagerX11::GetInstance();
- manager->SetDeviceListForTest(std::vector<unsigned int>(), device_list);
+ manager->SetDeviceListForTest(std::vector<int>(), device_list);
}
-void SetUpTouchDevicesForTest(const std::vector<unsigned int>& devices) {
+void SetUpTouchDevicesForTest(const std::vector<int>& devices) {
TouchFactory::GetInstance()->SetTouchDeviceForTest(devices);
ui::DeviceDataManagerX11* manager = ui::DeviceDataManagerX11::GetInstance();
- manager->SetDeviceListForTest(devices, std::vector<unsigned int>());
+ manager->SetDeviceListForTest(devices, std::vector<int>());
}
} // namespace ui
« no previous file with comments | « ui/events/test/events_test_utils_x11.h ('k') | ui/events/x/events_x_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698