chromium/chrome/test/chromedriver/prompt_behavior_unittest.cc

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

#include "chrome/test/chromedriver/prompt_behavior.h"

#include <string>
#include <tuple>

#include "base/json/json_writer.h"
#include "base/test/values_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {
static const std::unordered_map<std::string, PromptHandlerConfiguration>
    kPromptBehaviorToConfigurationMap =;
}  // namespace

void AssertPromptBehavior(
    PromptBehavior* prompt_behavior,
    std::vector<std::tuple<std::string, PromptHandlerType, bool>>
        expectations) {}

void AssertJsonEqual(const std::string& expected_str,
                     base::Value actual_value) {}

TEST(PromptBehaviorTest, StrEmpty) {}

TEST(PromptBehaviorTest, InvalidType) {}

TEST(PromptBehaviorTest, StrInvalid) {}

TEST(PromptBehaviorTest, StrAcceptLegacy) {}

TEST(PromptBehaviorTest, StrAccept) {}

TEST(PromptBehaviorTest, StrAcceptAndNotify) {}

TEST(PromptBehaviorTest, StrDismiss) {}

TEST(PromptBehaviorTest, StrDismissAndNotify) {}

TEST(PromptBehaviorTest, StrIgnore) {}

TEST(PromptBehaviorTest, EmptyDict) {}

class PromptBehaviorCreateDictInvariantTest
    : public testing::TestWithParam<
          std::tuple<std::string, std::string, std::string>> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(PromptBehaviorCreateDictInvariantTest, CreateDictWithDefault) {}

TEST_P(PromptBehaviorCreateDictInvariantTest, CreateDictWithoutDefault) {}

class PromptBehaviorStrCapabilityViewTest
    : public testing::TestWithParam<std::string> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(PromptBehaviorStrCapabilityViewTest, StrCapabilityView) {}

class PromptBehaviorDictCapabilityViewInvariantTest
    : public testing::TestWithParam<std::string> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(PromptBehaviorDictCapabilityViewInvariantTest, DictCapabilityView) {}

class PromptBehaviorStrMapperOptionsViewInvariantTest
    : public testing::TestWithParam<std::tuple<std::string, std::string>> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(PromptBehaviorStrMapperOptionsViewInvariantTest, StrMapperOptionsView) {}

class PromptBehaviorDictMapperOptionsViewInvariantTest
    : public testing::TestWithParam<std::tuple<std::string, std::string>> {};

INSTANTIATE_TEST_SUITE_P();
TEST_P(PromptBehaviorDictMapperOptionsViewInvariantTest,
       DictMapperOptionsView) {}