chromium/chrome/test/chromedriver/window_commands_unittest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "base/types/optional_util.h"
#include "base/values.h"
#include "chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h"
#include "chrome/test/chromedriver/chrome/status.h"
#include "chrome/test/chromedriver/chrome/stub_chrome.h"
#include "chrome/test/chromedriver/chrome/stub_devtools_client.h"
#include "chrome/test/chromedriver/chrome/stub_web_view.h"
#include "chrome/test/chromedriver/commands.h"
#include "chrome/test/chromedriver/net/timeout.h"
#include "chrome/test/chromedriver/session.h"
#include "chrome/test/chromedriver/util.h"
#include "chrome/test/chromedriver/window_commands.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

class MockChrome : public StubChrome {};

Command;

Status CallWindowCommand(Command command,
                         const base::Value::Dict& params = {}

Status CallWindowCommand(Command command,
                         StubWebView* web_view,
                         const base::Value::Dict& params = {}

}  // namespace

TEST(WindowCommandsTest, ExecuteFreeze) {}

TEST(WindowCommandsTest, ExecuteResume) {}

TEST(WindowCommandsTest, ExecuteSendCommandAndGetResult_NoCmd) {}

TEST(WindowCommandsTest, ExecuteSendCommandAndGetResult_NoParams) {}

TEST(WindowCommandsTest, ProcessInputActionSequencePointerMouse) {}

TEST(WindowCommandsTest, ProcessInputActionSequencePointerTouch) {}

TEST(WindowCommandsTest, ExecuteSetRPHRegistrationMode_NoParams) {}

TEST(WindowCommandsTest, ExecuteSetRPHRegistrationMode) {}

namespace {

class AddCookieWebView : public StubWebView {};

}  // namespace

TEST(WindowCommandsTest, ExecuteAddCookie_Valid) {}

TEST(WindowCommandsTest, ExecuteAddCookie_NameMissing) {}

TEST(WindowCommandsTest, ExecuteAddCookie_MissingValue) {}

TEST(WindowCommandsTest, ExecuteAddCookie_DomainInvalid) {}

TEST(WindowCommandsTest, ExecuteAddCookie_SameSiteEmpty) {}

TEST(WindowCommandsTest, ExecuteAddCookie_SameSiteNotSet) {}

namespace {

class GetCookiesWebView : public StubWebView {};

}  // namespace

TEST(WindowCommandsTest, ExecuteGetCookies) {}

TEST(WindowCommandsTest, ExecuteGetNamedCookie) {}

namespace {

class StorePrintParamsWebView : public StubWebView {};

base::Value::Dict GetDefaultPrintParams() {}
}  // namespace

TEST(WindowCommandsTest, ExecutePrintDefaultParams) {}

TEST(WindowCommandsTest, ExecutePrintSpecifyOrientation) {}

TEST(WindowCommandsTest, ExecutePrintSpecifyScale) {}

TEST(WindowCommandsTest, ExecutePrintSpecifyBackground) {}

TEST(WindowCommandsTest, ExecutePrintSpecifyShrinkToFit) {}

TEST(WindowCommandsTest, ExecutePrintSpecifyPageRanges) {}

TEST(WindowCommandsTest, ExecutePrintSpecifyPage) {}

TEST(WindowCommandsTest, ExecutePrintSpecifyMargin) {}

namespace {
constexpr double wd =;
constexpr double hd =;
constexpr int wi =;
constexpr int hi =;
constexpr bool mobile =;
constexpr double device_scale_factor =;

class StoreScreenshotParamsWebView : public StubWebView {};

base::Value::Dict GetExpectedCaptureParams() {}
}  // namespace

TEST(WindowCommandsTest, ExecuteScreenCapture) {}

TEST(WindowCommandsTest, ExecuteFullPageScreenCapture) {}

TEST(WindowCommandsTest, ExecuteMobileFullPageScreenCapture) {}

TEST(WindowCommandsTest, ExecuteScript_NoScript) {}

TEST(WindowCommandsTest, ExecuteScript_ScriptNotAString) {}

TEST(WindowCommandsTest, ExecuteScript_NoArgs) {}

TEST(WindowCommandsTest, ExecuteScript_ArgsNotAList) {}

TEST(WindowCommandsTest, ExecuteAsyncScript_NoScript) {}

TEST(WindowCommandsTest, ExecuteAsyncScript_ScriptNotAString) {}

TEST(WindowCommandsTest, ExecuteAsyncScript_NoArgs) {}

TEST(WindowCommandsTest, ExecuteAsyncScript_ArgsNotAList) {}

TEST(WindowCommandsTest, SendKeysToActiveElement_NoValue) {}

TEST(WindowCommandsTest, SendKeysToActiveElement_ValueNotAList) {}

TEST(WindowCommandsTest, ExecutePerformActions_NoActions) {}

TEST(WindowCommandsTest, ExecutePerformActions_ActionsNotAList) {}

TEST(WindowCommandsTest, ExecutePerformActions_NoActionsInSequence) {}

TEST(WindowCommandsTest, ExecutePerformActions_ActionsInSequenceNotAList) {}