#include "google_apis/common/api_key_request_util.h"
#include "base/test/gtest_util.h"
#include "base/version_info/channel.h"
#include "google_apis/google_api_keys.h"
#include "services/network/public/cpp/resource_request.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace google_apis {
namespace {
constexpr char kApiKeyHeaderName[] = …;
class APIKeyRequestUtilTest : public testing::Test { … };
TEST_F(APIKeyRequestUtilTest, AddDefaultAPIKeyToRequest) { … }
TEST_F(APIKeyRequestUtilTest, AddAPIKeyToRequest) { … }
#if DCHECK_IS_ON()
TEST_F(APIKeyRequestUtilTest, AddAPIKeyToRequest_EmptyKey) { … }
TEST_F(APIKeyRequestUtilTest, AddAPIKeyToRequest_ExistingHeader) { … }
#endif
}
}