#include <string_view>
#include "base/command_line.h"
#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/serial/serial_blocklist.h"
#include "chrome/browser/serial/serial_chooser_context.h"
#include "chrome/browser/serial/serial_chooser_context_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/chooser_bubble_testapi.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "services/device/public/cpp/test/fake_serial_port_manager.h"
#include "services/device/public/mojom/serial.mojom.h"
#include "url/gurl.h"
namespace {
class SerialTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(SerialTest, NavigateWithChooserCrossOrigin) { … }
IN_PROC_BROWSER_TEST_F(SerialTest, RemovePort) { … }
IN_PROC_BROWSER_TEST_F(SerialTest, ForgetPort) { … }
IN_PROC_BROWSER_TEST_F(SerialTest, ForgetAfterOpenPort) { … }
class SerialBlocklistTest : public SerialTest { … };
IN_PROC_BROWSER_TEST_F(SerialBlocklistTest, Blocklist) { … }
}