chromium/chrome/enterprise_companion/test/test_server.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/enterprise_companion/test/test_server.h"

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

#include "base/containers/flat_map.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/ranges/algorithm.h"
#include "base/time/time.h"
#include "chrome/enterprise_companion/enterprise_companion_status.h"
#include "chrome/enterprise_companion/proto/enterprise_companion_event.pb.h"
#include "chrome/enterprise_companion/proto/log_request.pb.h"
#include "net/test/embedded_test_server/http_request.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace enterprise_companion {

HttpRequest;
HttpResponse;
using QueryParams = base::flat_map<std::string, std::string>;

TestServer::TestServer() {}

TestServer::~TestServer() {}

void TestServer::ExpectOnce(const MatcherGroup& request_matcher_group,
                            const std::string& response_body,
                            net::HttpStatusCode response_status_code) {}

std::unique_ptr<HttpResponse> TestServer::HandleRequest(
    const HttpRequest& request) {}

Matcher CreateEventLogMatcher(
    const TestServer& test_server,
    const std::vector<std::pair<proto::EnterpriseCompanionEvent::EventCase,
                                EnterpriseCompanionStatus>>& expected_events) {}

std::string CreateLogResponse(const base::TimeDelta& next_request_wait) {}

}  // namespace enterprise_companion