#include "components/devtools/simple_devtools_protocol_client/simple_devtools_protocol_client.h"
#include <string>
#include <vector>
#include "base/containers/span.h"
#include "base/json/json_writer.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted_memory.h"
#include "base/memory/scoped_refptr.h"
#include "base/values.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/mock_devtools_agent_host.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
ElementsAre;
namespace simple_devtools_protocol_client {
namespace {
class SimpleDevToolsProtocolClientTest : public SimpleDevToolsProtocolClient,
public testing::Test { … };
class SimpleDevToolsProtocolClientSendCommandTest
: public SimpleDevToolsProtocolClientTest { … };
TEST_F(SimpleDevToolsProtocolClientSendCommandTest, CallbackChain) { … }
class SimpleDevToolsProtocolClientEventHandlerTest
: public SimpleDevToolsProtocolClientTest { … };
class SimpleDevToolsProtocolClientEventHandlerTraceTest
: public SimpleDevToolsProtocolClientEventHandlerTest { … };
TEST_F(SimpleDevToolsProtocolClientEventHandlerTraceTest,
AddRemoveEventHandler) { … }
TEST_F(SimpleDevToolsProtocolClientEventHandlerTraceTest,
AddRemoveAllEventHandlers) { … }
TEST_F(SimpleDevToolsProtocolClientEventHandlerTraceTest, EventsDispatching) { … }
class SimpleDevToolsProtocolClientEventHandlerNestedAddTest
: public SimpleDevToolsProtocolClientEventHandlerTest { … };
TEST_F(SimpleDevToolsProtocolClientEventHandlerNestedAddTest, ChainedAddEvent) { … }
class SimpleDevToolsProtocolClientEventHandlerNestedRemoveTest
: public SimpleDevToolsProtocolClientEventHandlerTest { … };
TEST_F(SimpleDevToolsProtocolClientEventHandlerNestedRemoveTest,
NestedRemoveEvent) { … }
class SelfDestructingSimpleDevToolsProtocolClient
: public SimpleDevToolsProtocolClient { … };
TEST(SimpleDevToolsProtocolClientTest, DestoroyClientInFlight) { … }
}
}