#include <string>
#include <utility>
#include "base/values.h"
#include "chrome/test/chromedriver/chrome/bidi_tracker.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/net/timeout.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
ContainsRegex;
Eq;
Optional;
Pointee;
SendBidiPayloadFunc CopyMessageTo(base::Value::Dict& destination) { … }
Status RejectPayload(base::Value::Dict payload) { … }
template <int Code>
testing::AssertionResult StatusCodeIs(const Status& status) { … }
testing::AssertionResult StatusOk(const Status& status) { … }
base::Value::Dict CreateValidParams(std::optional<std::string> channel,
int pong = 1) { … }
}
TEST(BidiTrackerTest, Ctor) { … }
TEST(BidiTrackerTest, SetChannelSuffix) { … }
TEST(BidiTrackerTest, ChannelAndFilter) { … }
TEST(BidiTrackerTest, ChannelLongerThanFilter) { … }
TEST(BidiTrackerTest, ChannelAndFilterAreDifferent) { … }
TEST(BidiTrackerTest, ChannelAndNoFilter) { … }
TEST(BidiTrackerTest, NoChannelNoFilter) { … }
TEST(BidiTrackerTest, NoChannelAndFilter) { … }
TEST(BidiTrackerTest, EmptyChannelNoFilter) { … }
TEST(BidiTrackerTest, EmptyChannelAndFilter) { … }
TEST(BidiTrackerTest, ChannelAndFilterReject) { … }
TEST(BidiTrackerTest, UnexpectedMethod) { … }
TEST(BidiTrackerTest, UnexpectedName) { … }
TEST(BidiTrackerTest, MissingName) { … }
TEST(BidiTrackerTest, NoCallback) { … }
TEST(BidiTrackerTest, MissingPayload) { … }