Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: Source/core/fetch/ResourceLoaderOptionsTest.cpp

Issue 807263002: replace COMPILE_ASSERT with static_assert in core/fetch/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceLoaderOptionsTest.cpp
diff --git a/Source/core/fetch/ResourceLoaderOptionsTest.cpp b/Source/core/fetch/ResourceLoaderOptionsTest.cpp
index 6257e21f6b40b37a77e3ff3ce4853e23cda1c07a..965d78f7a4e394351c81affa98c8e8c2cb77b2dd 100644
--- a/Source/core/fetch/ResourceLoaderOptionsTest.cpp
+++ b/Source/core/fetch/ResourceLoaderOptionsTest.cpp
@@ -20,14 +20,14 @@ TEST(ResourceLoaderOptionsTest, DeepCopy)
{
// Check that the fields of ResourceLoaderOptions are enums,
// except for initiatorInfo and securityOrigin.
- COMPILE_ASSERT(WTF::IsConvertibleToInteger<DataBufferingPolicy>::value, DataBufferingPolicy_is_enum);
- COMPILE_ASSERT(WTF::IsConvertibleToInteger<StoredCredentials>::value, StoredCredentials_is_enum);
- COMPILE_ASSERT(WTF::IsConvertibleToInteger<CredentialRequest>::value, CredentialRequest_is_enum);
- COMPILE_ASSERT(WTF::IsConvertibleToInteger<ContentSecurityPolicyDisposition>::value, ContentSecurityPolicyDisposition_is_enum);
- COMPILE_ASSERT(WTF::IsConvertibleToInteger<RequestInitiatorContext>::value, RequestInitiatorContext_is_enum);
- COMPILE_ASSERT(WTF::IsConvertibleToInteger<MixedContentBlockingTreatment>::value, MixedContentBlockingTreatment_is_enum);
- COMPILE_ASSERT(WTF::IsConvertibleToInteger<SynchronousPolicy>::value, SynchronousPolicy_is_enum);
- COMPILE_ASSERT(WTF::IsConvertibleToInteger<CORSEnabled>::value, CORSEnabled_is_enum);
+ static_assert(WTF::IsEnum<DataBufferingPolicy>::value, "DataBufferingPolicy should be an enum");
+ static_assert(WTF::IsEnum<StoredCredentials>::value, "StoredCredentials should be an enum");
+ static_assert(WTF::IsEnum<CredentialRequest>::value, "CredentialRequest should be an enum");
+ static_assert(WTF::IsEnum<ContentSecurityPolicyDisposition>::value, "ContentSecurityPolicyDisposition should be an enum");
+ static_assert(WTF::IsEnum<RequestInitiatorContext>::value, "RequestInitiatorContext should be an enum");
+ static_assert(WTF::IsEnum<MixedContentBlockingTreatment>::value, "MixedContentBlockingTreatment should be an enum");
+ static_assert(WTF::IsEnum<SynchronousPolicy>::value, "SynchronousPolicy should be an enum");
+ static_assert(WTF::IsEnum<CORSEnabled>::value, "CORSEnabled should be an enum");
ResourceLoaderOptions original;
RefPtr<SecurityOrigin> securityOrigin = SecurityOrigin::createFromString("http://www.google.com");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698