#include "components/plus_addresses/plus_address_jit_allocator.h"
#include <utility>
#include "base/test/gmock_callback_support.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/types/expected.h"
#include "components/plus_addresses/mock_plus_address_http_client.h"
#include "components/plus_addresses/plus_address_allocator.h"
#include "components/plus_addresses/plus_address_test_utils.h"
#include "components/plus_addresses/plus_address_types.h"
#include "net/http/http_status_code.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace plus_addresses {
namespace {
_;
InSequence;
Message;
NiceMock;
const PlusProfileOrError kNotSupportedError = …;
const PlusProfileOrError kMaxRefreshesReachedError = …;
url::Origin GetSampleOrigin1() { … }
url::Origin GetSampleOrigin2() { … }
}
class PlusAddressJitAllocatorRefreshTest : public ::testing::Test { … };
TEST_F(PlusAddressJitAllocatorRefreshTest, RefreshParameterPassedOn) { … }
TEST_F(PlusAddressJitAllocatorRefreshTest, AllocationIsNeverSynchronous) { … }
TEST_F(PlusAddressJitAllocatorRefreshTest, RefreshLimit) { … }
TEST_F(PlusAddressJitAllocatorRefreshTest,
HandleServerResponseForQuotaExhausted) { … }
}