1 // Copyright (c) 2013 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 "extensions/common/permissions/usb_device_permission_data.h"
6 #include "testing/gtest/include/gtest/gtest.h"
10 TEST(USBDevicePermissionTest
, PermissionDataOrder
) {
11 EXPECT_LT(UsbDevicePermissionData(0x02ad, 0x138c, -1),
12 UsbDevicePermissionData(0x02ad, 0x138d, -1));
13 ASSERT_LT(UsbDevicePermissionData(0x02ad, 0x138d, -1),
14 UsbDevicePermissionData(0x02ae, 0x138c, -1));
15 EXPECT_LT(UsbDevicePermissionData(0x02ad, 0x138c, -1),
16 UsbDevicePermissionData(0x02ad, 0x138c, 0));
19 } // namespace extensions