Index: net/http/http_security_headers_unittest.cc |
diff --git a/net/http/http_security_headers_unittest.cc b/net/http/http_security_headers_unittest.cc |
index 3fb54a25aaa8f855fc08410e124c941a908480cf..1e0b1832d4abad4bbd0fa11f475b10a1256d9ffc 100644 |
--- a/net/http/http_security_headers_unittest.cc |
+++ b/net/http/http_security_headers_unittest.cc |
@@ -4,6 +4,8 @@ |
#include <algorithm> |
+#include <stdint.h> |
+ |
#include "base/base64.h" |
#include "base/sha1.h" |
#include "base/strings/string_piece.h" |
@@ -330,7 +332,7 @@ TEST_F(HttpSecurityHeadersTest, ValidSTSHeaders) { |
"max-age=39408299 ;incLudesUbdOmains", &max_age, |
&include_subdomains)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(39408299)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(39408299)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_TRUE(include_subdomains); |
@@ -338,7 +340,7 @@ TEST_F(HttpSecurityHeadersTest, ValidSTSHeaders) { |
"max-age=394082038 ; incLudesUbdOmains", &max_age, |
&include_subdomains)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(394082038)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(394082038)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_TRUE(include_subdomains); |
@@ -346,7 +348,7 @@ TEST_F(HttpSecurityHeadersTest, ValidSTSHeaders) { |
"max-age=394082038 ; incLudesUbdOmains;", &max_age, |
&include_subdomains)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(394082038)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(394082038)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_TRUE(include_subdomains); |
@@ -354,7 +356,7 @@ TEST_F(HttpSecurityHeadersTest, ValidSTSHeaders) { |
";; max-age=394082038 ; incLudesUbdOmains; ;", &max_age, |
&include_subdomains)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(394082038)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(394082038)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_TRUE(include_subdomains); |
@@ -362,7 +364,7 @@ TEST_F(HttpSecurityHeadersTest, ValidSTSHeaders) { |
";; max-age=394082038 ;", &max_age, |
&include_subdomains)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(394082038)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(394082038)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_FALSE(include_subdomains); |
@@ -370,7 +372,7 @@ TEST_F(HttpSecurityHeadersTest, ValidSTSHeaders) { |
";; ; ; max-age=394082038;;; includeSubdomains ;; ;", &max_age, |
&include_subdomains)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(394082038)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(394082038)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_TRUE(include_subdomains); |
@@ -378,7 +380,7 @@ TEST_F(HttpSecurityHeadersTest, ValidSTSHeaders) { |
"incLudesUbdOmains ; max-age=394082038 ;;", &max_age, |
&include_subdomains)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(394082038)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(394082038)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_TRUE(include_subdomains); |
@@ -455,7 +457,7 @@ static void TestValidPKPHeaders(HashValueTag tag) { |
"max-age=39408299 ;" + backup_pin + ";" + good_pin + "; ", |
chain_hashes, &max_age, &include_subdomains, &hashes)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(39408299)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(39408299)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_FALSE(include_subdomains); |
@@ -464,7 +466,7 @@ static void TestValidPKPHeaders(HashValueTag tag) { |
good_pin + ";" + backup_pin + "; ", |
chain_hashes, &max_age, &include_subdomains, &hashes)); |
expect_max_age = base::TimeDelta::FromSeconds( |
- std::min(kMaxHSTSAgeSecs, static_cast<int64>(GG_INT64_C(394082038)))); |
+ std::min(kMaxHSTSAgeSecs, static_cast<int64>(INT64_C(394082038)))); |
EXPECT_EQ(expect_max_age, max_age); |
EXPECT_TRUE(include_subdomains); |