OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/metrics_log.h" | 5 #include "chrome/browser/metrics/metrics_log.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
35 #include "content/public/common/process_type.h" | 35 #include "content/public/common/process_type.h" |
36 #include "content/public/common/webplugininfo.h" | 36 #include "content/public/common/webplugininfo.h" |
37 #include "content/public/test/test_browser_thread_bundle.h" | 37 #include "content/public/test/test_browser_thread_bundle.h" |
38 #include "content/public/test/test_utils.h" | 38 #include "content/public/test/test_utils.h" |
39 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
40 #include "ui/gfx/size.h" | 40 #include "ui/gfx/size.h" |
41 #include "url/gurl.h" | 41 #include "url/gurl.h" |
42 | 42 |
43 #if defined(OS_CHROMEOS) | 43 #if defined(OS_CHROMEOS) |
44 #include "chrome/browser/chromeos/login/fake_user_manager.h" | 44 #include "chrome/browser/chromeos/login/users/fake_user_manager.h" |
45 #include "chrome/browser/chromeos/login/user_manager.h" | 45 #include "chrome/browser/chromeos/login/users/user_manager.h" |
46 #include "chrome/browser/metrics/metrics_log_chromeos.h" | 46 #include "chrome/browser/metrics/metrics_log_chromeos.h" |
47 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" | 47 #include "chromeos/dbus/fake_bluetooth_adapter_client.h" |
48 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" | 48 #include "chromeos/dbus/fake_bluetooth_agent_manager_client.h" |
49 #include "chromeos/dbus/fake_bluetooth_device_client.h" | 49 #include "chromeos/dbus/fake_bluetooth_device_client.h" |
50 #include "chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h" | 50 #include "chromeos/dbus/fake_bluetooth_gatt_characteristic_client.h" |
51 #include "chromeos/dbus/fake_bluetooth_gatt_descriptor_client.h" | 51 #include "chromeos/dbus/fake_bluetooth_gatt_descriptor_client.h" |
52 #include "chromeos/dbus/fake_bluetooth_gatt_service_client.h" | 52 #include "chromeos/dbus/fake_bluetooth_gatt_service_client.h" |
53 #include "chromeos/dbus/fake_bluetooth_input_client.h" | 53 #include "chromeos/dbus/fake_bluetooth_input_client.h" |
54 #include "chromeos/dbus/fake_dbus_thread_manager.h" | 54 #include "chromeos/dbus/fake_dbus_thread_manager.h" |
55 | 55 |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 PairedDevice device2 = | 787 PairedDevice device2 = |
788 log.system_profile().hardware().bluetooth().paired_device(1); | 788 log.system_profile().hardware().bluetooth().paired_device(1); |
789 | 789 |
790 EXPECT_EQ(FakeBluetoothDeviceClient::kConfirmPasskeyClass, | 790 EXPECT_EQ(FakeBluetoothDeviceClient::kConfirmPasskeyClass, |
791 device2.bluetooth_class()); | 791 device2.bluetooth_class()); |
792 EXPECT_EQ(PairedDevice::DEVICE_PHONE, device2.type()); | 792 EXPECT_EQ(PairedDevice::DEVICE_PHONE, device2.type()); |
793 EXPECT_EQ(0x207D74U, device2.vendor_prefix()); | 793 EXPECT_EQ(0x207D74U, device2.vendor_prefix()); |
794 EXPECT_EQ(PairedDevice::VENDOR_ID_UNKNOWN, device2.vendor_id_source()); | 794 EXPECT_EQ(PairedDevice::VENDOR_ID_UNKNOWN, device2.vendor_id_source()); |
795 } | 795 } |
796 #endif // OS_CHROMEOS | 796 #endif // OS_CHROMEOS |
OLD | NEW |