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

Side by Side Diff: chrome/browser/metrics/chromeos_metrics_provider_unittest.cc

Issue 685793002: Move all event related devices from ui/events/ to ui/events/devices/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internal-touchscreens
Patch Set: fix ozone Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/metrics/chromeos_metrics_provider.cc ('k') | chrome/browser/ui/BUILD.gn » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/metrics/chromeos_metrics_provider.h" 5 #include "chrome/browser/metrics/chromeos_metrics_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" 10 #include "chrome/browser/chromeos/login/users/fake_user_manager.h"
11 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" 11 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h"
12 #include "chrome/browser/metrics/chromeos_metrics_provider.h" 12 #include "chrome/browser/metrics/chromeos_metrics_provider.h"
13 #include "chromeos/dbus/dbus_thread_manager.h" 13 #include "chromeos/dbus/dbus_thread_manager.h"
14 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" 14 #include "chromeos/dbus/fake_bluetooth_adapter_client.h"
15 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" 15 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h"
16 #include "chromeos/dbus/fake_bluetooth_device_client.h" 16 #include "chromeos/dbus/fake_bluetooth_device_client.h"
17 #include "chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h" 17 #include "chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h"
18 #include "chromeos/dbus/fake_bluetooth_gatt_descriptor_client.h" 18 #include "chromeos/dbus/fake_bluetooth_gatt_descriptor_client.h"
19 #include "chromeos/dbus/fake_bluetooth_gatt_service_client.h" 19 #include "chromeos/dbus/fake_bluetooth_gatt_service_client.h"
20 #include "chromeos/dbus/fake_bluetooth_input_client.h" 20 #include "chromeos/dbus/fake_bluetooth_input_client.h"
21 #include "chromeos/dbus/power_manager_client.h" 21 #include "chromeos/dbus/power_manager_client.h"
22 #include "chromeos/login/login_state.h" 22 #include "chromeos/login/login_state.h"
23 #include "components/metrics/proto/system_profile.pb.h" 23 #include "components/metrics/proto/system_profile.pb.h"
24 #include "components/user_manager/user_manager.h" 24 #include "components/user_manager/user_manager.h"
25 #include "content/public/test/test_browser_thread_bundle.h" 25 #include "content/public/test/test_browser_thread_bundle.h"
26 #include "content/public/test/test_utils.h" 26 #include "content/public/test/test_utils.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 #if defined(USE_X11) 29 #if defined(USE_X11)
30 #include "ui/events/x/device_data_manager_x11.h" 30 #include "ui/events/devices/x11/device_data_manager_x11.h"
31 #endif 31 #endif
32 32
33 using chromeos::DBusThreadManager; 33 using chromeos::DBusThreadManager;
34 using chromeos::DBusThreadManagerSetter; 34 using chromeos::DBusThreadManagerSetter;
35 using chromeos::BluetoothAdapterClient; 35 using chromeos::BluetoothAdapterClient;
36 using chromeos::BluetoothAgentManagerClient; 36 using chromeos::BluetoothAgentManagerClient;
37 using chromeos::BluetoothDeviceClient; 37 using chromeos::BluetoothDeviceClient;
38 using chromeos::BluetoothGattCharacteristicClient; 38 using chromeos::BluetoothGattCharacteristicClient;
39 using chromeos::BluetoothGattDescriptorClient; 39 using chromeos::BluetoothGattDescriptorClient;
40 using chromeos::BluetoothGattServiceClient; 40 using chromeos::BluetoothGattServiceClient;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Second device should match the Confirm Passkey object, this has 240 // Second device should match the Confirm Passkey object, this has
241 // no Device ID information. 241 // no Device ID information.
242 PairedDevice device2 = system_profile.hardware().bluetooth().paired_device(1); 242 PairedDevice device2 = system_profile.hardware().bluetooth().paired_device(1);
243 243
244 EXPECT_EQ(FakeBluetoothDeviceClient::kConfirmPasskeyClass, 244 EXPECT_EQ(FakeBluetoothDeviceClient::kConfirmPasskeyClass,
245 device2.bluetooth_class()); 245 device2.bluetooth_class());
246 EXPECT_EQ(PairedDevice::DEVICE_PHONE, device2.type()); 246 EXPECT_EQ(PairedDevice::DEVICE_PHONE, device2.type());
247 EXPECT_EQ(0x207D74U, device2.vendor_prefix()); 247 EXPECT_EQ(0x207D74U, device2.vendor_prefix());
248 EXPECT_EQ(PairedDevice::VENDOR_ID_UNKNOWN, device2.vendor_id_source()); 248 EXPECT_EQ(PairedDevice::VENDOR_ID_UNKNOWN, device2.vendor_id_source());
249 } 249 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chromeos_metrics_provider.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698