GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / device / usb / usb_ids_unittest.cc
blobdecce1e703f3d9ef0536a6214bb1f4453ef8b528
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
3 // found in the LICENSE file.
5 #include <string>
7 #include "device/usb/usb_ids.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 namespace {
12 static const uint16_t kGoogleVendorId = 0x18d1;
13 static const uint16_t kNexusSProductId = 0x4e21;
15 } // namespace
17 namespace device {
19 TEST(UsbIdsTest, GetVendorName) {
20 EXPECT_EQ(NULL, UsbIds::GetVendorName(0));
21 EXPECT_EQ(std::string("Google Inc."), UsbIds::GetVendorName(kGoogleVendorId));
24 TEST(UsbIdsTest, GetProductName) {
25 EXPECT_EQ(NULL, UsbIds::GetProductName(0, 0));
26 EXPECT_EQ(NULL, UsbIds::GetProductName(kGoogleVendorId, 0));
27 EXPECT_EQ(std::string("Nexus S"), UsbIds::GetProductName(kGoogleVendorId,
28 kNexusSProductId));
31 } // namespace device