chromium/chrome/browser/enterprise/connectors/device_trust/key_management/core/network/mojo_key_network_delegate_unittest.cc

// Copyright 2022 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/browser/enterprise/connectors/device_trust/key_management/core/network/mojo_key_network_delegate.h"

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

#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "net/http/http_status_code.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "services/network/test/test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace enterprise_connectors {

HttpResponseCode;

namespace {

constexpr char kFakeBody[] =;
constexpr char kFakeDMServerUrl[] =;
constexpr char kFakeDMToken[] =;
constexpr HttpResponseCode kSuccessCode =;
constexpr HttpResponseCode kHardFailureCode =;

}  // namespace

class MojoKeyNetworkDelegateTest : public testing::Test {};

// Tests a successful upload request.
TEST_F(MojoKeyNetworkDelegateTest, UploadRequest_Success) {}

// Tests two separate sequential requests.
TEST_F(MojoKeyNetworkDelegateTest, UploadRequest_MultipleSequentialRequests) {}

// Tests two parallel requests.
TEST_F(MojoKeyNetworkDelegateTest, UploadRequest_ParallelSuccess) {}

// Tests an upload request when no response headers were returned from
// the url loader.
TEST_F(MojoKeyNetworkDelegateTest, UploadRequest_EmptyHeader) {}

}  // namespace enterprise_connectors