#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 = …;
}
class MojoKeyNetworkDelegateTest : public testing::Test { … };
TEST_F(MojoKeyNetworkDelegateTest, UploadRequest_Success) { … }
TEST_F(MojoKeyNetworkDelegateTest, UploadRequest_MultipleSequentialRequests) { … }
TEST_F(MojoKeyNetworkDelegateTest, UploadRequest_ParallelSuccess) { … }
TEST_F(MojoKeyNetworkDelegateTest, UploadRequest_EmptyHeader) { … }
}