#include "chrome/test/chromedriver/session_commands.h"
#include <memory>
#include <string>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/json/json_writer.h"
#include "base/run_loop.h"
#include "base/system/sys_info.h"
#include "base/test/values_test_util.h"
#include "base/threading/thread.h"
#include "base/values.h"
#include "chrome/test/chromedriver/capabilities.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 "chrome/test/chromedriver/commands.h"
#include "chrome/test/chromedriver/logging.h"
#include "chrome/test/chromedriver/session.h"
#include "testing/gtest/include/gtest/gtest.h"
TEST(SessionCommandsTest, ExecuteGetTimeouts) { … }
TEST(SessionCommandsTest, ExecuteSetTimeouts) { … }
TEST(SessionCommandsTest, MergeCapabilities) { … }
TEST(SessionCommandsTest, ProcessCapabilities_Empty) { … }
TEST(SessionCommandsTest, ProcessCapabilities_AlwaysMatch) { … }
TEST(SessionCommandsTest, ProcessCapabilities_FirstMatch) { … }
namespace {
Status ProcessCapabilitiesJson(const std::string& params_json,
base::Value::Dict& result_capabilities) { … }
}
TEST(SessionCommandsTest, ProcessCapabilities_Merge) { … }
TEST(SessionCommandsTest, FileUpload) { … }
namespace {
class DetachChrome : public StubChrome { … };
}
TEST(SessionCommandsTest, MatchCapabilities) { … }
TEST(SessionCommandsTest, MatchCapabilitiesVirtualAuthenticators) { … }
TEST(SessionCommandsTest, MatchCapabilitiesVirtualAuthenticatorsLargeBlob) { … }
TEST(SessionCommandsTest, MatchCapabilitiesFedCm) { … }
TEST(SessionCommandsTest, Quit) { … }
TEST(SessionCommandsTest, QuitWithDetach) { … }
namespace {
class FailsToQuitChrome : public StubChrome { … };
}
TEST(SessionCommandsTest, QuitFails) { … }
namespace {
class MockChrome : public StubChrome { … };
}
TEST(SessionCommandsTest, ConfigureHeadlessSession_dotNotation) { … }
TEST(SessionCommandsTest, ConfigureHeadlessSession_nestedMap) { … }
TEST(SessionCommandsTest, ConfigureHeadlessSession_noDownloadDir) { … }
TEST(SessionCommandsTest, ConfigureHeadlessSession_notHeadless) { … }
TEST(SessionCommandsTest, ConfigureSession_allSet) { … }
TEST(SessionCommandsTest, ConfigureSession_defaults) { … }
TEST(SessionCommandsTest, ConfigureSession_legacyDefault) { … }
TEST(SessionCommandsTest, ConfigureSession_unhandledPromptBehaviorDict) { … }