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

Unified Diff: trunk/src/device/hid/hid_service_unittest.cc

Issue 148183015: Revert 247926 "HID backend" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/device/hid/hid_service_mac.cc ('k') | trunk/src/device/hid/hid_service_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/device/hid/hid_service_unittest.cc
===================================================================
--- trunk/src/device/hid/hid_service_unittest.cc (revision 247933)
+++ trunk/src/device/hid/hid_service_unittest.cc (working copy)
@@ -1,55 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <string>
-#include <vector>
-
-#include "base/bind.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop.h"
-#include "device/hid/hid_connection.h"
-#include "device/hid/hid_service.h"
-#include "net/base/io_buffer.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-// TODO(rockot): Enable tests once ChromeOS HID testing hardware is in place.
-#if defined(OS_CHROMEOS)
-#define MAYBE_Create DISABLED_Create
-#else
-#define MAYBE_Create Create
-#endif
-
-namespace device {
-
-namespace {
-
-const int kUSBLUFADemoVID = 0x03eb;
-const int kUSBLUFADemoPID = 0x204f;
-
-} // namespace
-
-TEST(HidServiceTest, MAYBE_Create) {
- base::MessageLoopForIO message_loop;
- HidService* service = HidService::GetInstance();
- ASSERT_TRUE(service);
-
- std::vector<HidDeviceInfo> devices;
- service->GetDevices(&devices);
- std::string target_device;
-
- for (std::vector<HidDeviceInfo>::iterator it = devices.begin();
- it != devices.end();
- ++it) {
- if (it->vendor_id == kUSBLUFADemoVID && it->product_id == kUSBLUFADemoPID) {
- target_device = it->device_id;
- break;
- }
- }
-
- if (devices.size() > 0) {
- EXPECT_NE(std::string(""), target_device);
- }
-}
-
-} // namespace device
« no previous file with comments | « trunk/src/device/hid/hid_service_mac.cc ('k') | trunk/src/device/hid/hid_service_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698