| OLD | NEW |
| 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/macros.h" |
| 10 #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" | 10 #include "chrome/browser/chromeos/login/users/fake_chrome_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/power_manager_client.h" | 14 #include "chromeos/dbus/power_manager_client.h" |
| 15 #include "chromeos/login/login_state.h" | 15 #include "chromeos/login/login_state.h" |
| 16 #include "components/metrics/proto/system_profile.pb.h" | 16 #include "components/metrics/proto/system_profile.pb.h" |
| 17 #include "components/user_manager/user_manager.h" | 17 #include "components/user_manager/user_manager.h" |
| 18 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
| 19 #include "content/public/test/test_utils.h" | 19 #include "content/public/test/test_utils.h" |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 EXPECT_EQ(0x030DU, device1.product_id()); | 262 EXPECT_EQ(0x030DU, device1.product_id()); |
| 263 EXPECT_EQ(0x0306U, device1.device_id()); | 263 EXPECT_EQ(0x0306U, device1.device_id()); |
| 264 | 264 |
| 265 // The Confirm Passkey object, this has no Device ID information. | 265 // The Confirm Passkey object, this has no Device ID information. |
| 266 EXPECT_EQ(FakeBluetoothDeviceClient::kConfirmPasskeyClass, | 266 EXPECT_EQ(FakeBluetoothDeviceClient::kConfirmPasskeyClass, |
| 267 device2.bluetooth_class()); | 267 device2.bluetooth_class()); |
| 268 EXPECT_EQ(PairedDevice::DEVICE_PHONE, device2.type()); | 268 EXPECT_EQ(PairedDevice::DEVICE_PHONE, device2.type()); |
| 269 EXPECT_EQ(0x207D74U, device2.vendor_prefix()); | 269 EXPECT_EQ(0x207D74U, device2.vendor_prefix()); |
| 270 EXPECT_EQ(PairedDevice::VENDOR_ID_UNKNOWN, device2.vendor_id_source()); | 270 EXPECT_EQ(PairedDevice::VENDOR_ID_UNKNOWN, device2.vendor_id_source()); |
| 271 } | 271 } |
| OLD | NEW |