Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / device / hid / hid_service_unittest.cc
blob0b5043bd8644b6ce58ec839dd535ec0c8c923dcd
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
3 // found in the LICENSE file.
5 #include <vector>
7 #include "base/message_loop/message_loop.h"
8 #include "device/hid/hid_service.h"
9 #include "testing/gtest/include/gtest/gtest.h"
11 namespace device {
13 TEST(HidServiceTest, Create) {
14 base::MessageLoopForIO message_loop;
15 HidService* service = HidService::GetInstance();
16 ASSERT_TRUE(service);
18 std::vector<HidDeviceInfo> devices;
19 service->GetDevices(&devices);
20 for (std::vector<HidDeviceInfo>::iterator it = devices.begin();
21 it != devices.end();
22 ++it) {
23 ASSERT_TRUE(it->device_id != kInvalidHidDeviceId);
27 } // namespace device