#include "base/test/gmock_callback_support.h"
#include "base/test/values_test_util.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/profiles/profile.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "content/public/test/browser_test.h"
#include "extensions/browser/api/usb/usb_api.h"
#include "extensions/test/extension_test_message_listener.h"
#include "extensions/test/result_catcher.h"
#include "extensions/test/test_extension_dir.h"
#include "services/device/public/cpp/test/fake_usb_device_info.h"
#include "services/device/public/cpp/test/fake_usb_device_manager.h"
#include "services/device/public/cpp/test/mock_usb_mojo_device.h"
#include "services/device/public/mojom/usb_device.mojom.h"
namespace extensions {
namespace {
RunOnceCallback;
_;
constexpr char kManifest[] = …;
constexpr char kPolicySetting[] = …;
class ChromeUsbApiTest : public ExtensionBrowserTest { … };
IN_PROC_BROWSER_TEST_F(ChromeUsbApiTest, GetDevicesByPolicy) { … }
IN_PROC_BROWSER_TEST_F(ChromeUsbApiTest, GetDevicesByPolicyNoPolicySet) { … }
IN_PROC_BROWSER_TEST_F(ChromeUsbApiTest, FindDevicesByPolicy) { … }
IN_PROC_BROWSER_TEST_F(ChromeUsbApiTest, FindDevicesByPolicyNoPolicySet) { … }
IN_PROC_BROWSER_TEST_F(ChromeUsbApiTest, OnDevicesAdded) { … }
}
}