#include "chrome/updater/test/server.h"
#include <algorithm>
#include <iterator>
#include <list>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/logging.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#include "chrome/updater/test/http_request.h"
#include "chrome/updater/test/integration_test_commands.h"
#include "chrome/updater/test/integration_tests_impl.h"
#include "net/http/http_status_code.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/zlib/google/compression_utils.h"
namespace updater::test {
namespace {
std::string SerializeRequest(HttpRequest& request) { … }
}
ScopedServer::ScopedServer() { … }
ScopedServer::ScopedServer(
scoped_refptr<IntegrationTestCommands> integration_test_commands)
: … { … }
ScopedServer::~ScopedServer() { … }
void ScopedServer::ConfigureTestMode(IntegrationTestCommands* commands) { … }
void ScopedServer::ExpectOnce(request::MatcherGroup request_matcher_group,
const std::string& response_body,
net::HttpStatusCode http_status_code) { … }
std::unique_ptr<net::test_server::HttpResponse> ScopedServer::HandleRequest(
const net::test_server::HttpRequest& req) { … }
}