1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h"
11 #include "device/hid/hid_connection.h"
12 #include "device/hid/hid_service.h"
13 #include "net/base/io_buffer.h"
14 #include "testing/gtest/include/gtest/gtest.h"
18 TEST(HidServiceTest, Create) {
19 base::MessageLoopForIO message_loop;
20 HidService* service = HidService::GetInstance();
23 std::vector<HidDeviceInfo> devices;
24 service->GetDevices(&devices);
26 for (std::vector<HidDeviceInfo>::iterator it = devices.begin();
29 ASSERT_TRUE(!it->device_id.empty());