#include <map>
#include <memory>
#include <string>
#include <utility>
#include "base/containers/extend.h"
#include "base/containers/span.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ref_counted.h"
#include "base/not_fatal_until.h"
#include "base/unguessable_token.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_test.h"
#include "extensions/browser/api/serial/serial_api.h"
#include "extensions/browser/api/serial/serial_connection.h"
#include "extensions/browser/api/serial/serial_port_manager.h"
#include "extensions/browser/extension_function.h"
#include "extensions/browser/extension_function_registry.h"
#include "extensions/common/api/serial.h"
#include "extensions/common/switches.h"
#include "extensions/test/result_catcher.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/system/simple_watcher.h"
#include "services/device/public/mojom/serial.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#define SIMULATE_SERIAL_PORTS …
_;
Return;
namespace extensions {
namespace {
class FakeSerialPort : public device::mojom::SerialPort { … };
class FakeSerialPortManager : public device::mojom::SerialPortManager { … };
class SerialApiTest : public ExtensionApiTest { … };
}
IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialFakeHardware) { … }
IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialRealHardware) { … }
IN_PROC_BROWSER_TEST_F(SerialApiTest, SerialRealHardwareFail) { … }
}