chromium/chrome/updater/test/request_matcher.cc

// Copyright 2023 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/updater/test/request_matcher.h"

#include <array>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

#include "base/containers/contains.h"
#include "base/containers/flat_map.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/test/bind.h"
#include "base/values.h"
#include "chrome/updater/constants.h"
#include "chrome/updater/test/http_request.h"
#include "chrome/updater/update_service.h"
#include "chrome/updater/updater_scope.h"
#include "chrome/updater/util/util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/re2/src/re2/re2.h"
#include "url/gurl.h"

namespace updater::test::request {

FormExpectations::FormExpectations(const std::string& name,
                                   std::vector<std::string> regexes)
    :{}

FormExpectations::FormExpectations(const FormExpectations&) = default;
FormExpectations& FormExpectations::operator=(const FormExpectations& other) =
    default;
FormExpectations::~FormExpectations() = default;

Matcher GetPathMatcher(const std::string& expected_path_regex) {}

Matcher GetHeaderMatcher(
    const base::flat_map<std::string, std::string> expected_headers) {}

Matcher GetUpdaterUserAgentMatcher() {}

Matcher GetTargetURLMatcher(GURL target_url) {}

Matcher GetContentMatcher(
    const std::vector<std::string>& expected_content_regex_sequence) {}

Matcher GetScopeMatcher(UpdaterScope scope) {}

Matcher GetAppPriorityMatcher(const std::string& app_id,
                              UpdateService::Priority priority) {}

Matcher GetUpdaterEnableUpdatesMatcher() {}

Matcher GetMultipartContentMatcher(
    const std::vector<FormExpectations>& form_expections) {}

}  // namespace updater::test::request