blob: 3478a73966656c64972e0e821607992fbeff5cac [file] [log] [blame]
// Copyright 2020 The Chromium OS 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 "lorgnette/ippusb_device.h"
#include <string>
#include <gtest/gtest.h>
namespace lorgnette {
TEST(IppUsbDeviceLookup, NoBackendForNonIppUsb) {
base::Optional<std::string> backend =
BackendForDevice("notippusb:device_string");
EXPECT_FALSE(backend.has_value());
}
TEST(IppUsbDeviceLookup, NoBackendForBadFormat) {
base::Optional<std::string> backend =
BackendForDevice("ippusb:not_an_escl_string");
EXPECT_FALSE(backend.has_value());
}
} // namespace lorgnette