#include "chrome/test/chromedriver/session.h"
#include <memory>
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/json/json_reader.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/chrome/stub_chrome.h"
#include "chrome/test/chromedriver/chrome/stub_web_view.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
Eq;
Pointee;
testing::AssertionResult StatusOk(const Status& status) { … }
void SaveTo(std::string* dest, std::string value) { … }
class MockChrome : public StubChrome { … };
}
TEST(Session, GetTargetWindowNoChrome) { … }
TEST(Session, GetTargetWindowTargetWindowClosed) { … }
TEST(Session, GetTargetWindowTargetWindowStillOpen) { … }
TEST(Session, SwitchToParentFrame) { … }
TEST(Session, SwitchToTopFrame) { … }
TEST(Session, SplitChannel1) { … }
TEST(Session, SplitChannel2) { … }
TEST(Session, SplitChannelNonIntegerConnection) { … }
TEST(Session, SplitChannelNoSeparators) { … }
TEST(Session, SplitChannelEmpty) { … }
TEST(Session, OnBidiResponseChan) { … }
TEST(Session, OnBidiResponseNoChan) { … }
TEST(Session, OnBidiResponseNullChan) { … }
TEST(Session, OnBidiResponseUnexpectedChannel1) { … }
TEST(Session, OnBidiResponseUnexpectedChannel2) { … }
TEST(Session, OnBidiResponseUnknownConnection) { … }
TEST(Session, OnBidiResponseRemovedConnection) { … }
TEST(Session, OnBidiResponseAfterCloseAllConnections) { … }
TEST(Session, OnBidiResponseCorrectConnection) { … }
TEST(Session, OnBidiResponseFormat) { … }
TEST(Session, OnBlockingChannelResponseWhileAwaiting) { … }
TEST(Session, OnNonBlockingChannelResponseWhileAwaiting) { … }
TEST(Session, OnBlockingChannelResponseWhileNotAwaiting) { … }