OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "platform/network/LinkHeader.h" | 5 #include "platform/network/LinkHeader.h" |
6 | 6 |
| 7 #include <base/macros.h> |
7 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
8 #include <base/macros.h> | |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 namespace { | 11 namespace { |
12 | 12 |
13 TEST(LinkHeaderTest, Empty) { | 13 TEST(LinkHeaderTest, Empty) { |
14 String nullString; | 14 String nullString; |
15 LinkHeaderSet nullHeaderSet(nullString); | 15 LinkHeaderSet nullHeaderSet(nullString); |
16 ASSERT_EQ(nullHeaderSet.size(), unsigned(0)); | 16 ASSERT_EQ(nullHeaderSet.size(), unsigned(0)); |
17 String emptyString(""); | 17 String emptyString(""); |
18 LinkHeaderSet emptyHeaderSet(emptyString); | 18 LinkHeaderSet emptyHeaderSet(emptyString); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 else | 278 else |
279 EXPECT_STREQ(testCase.crossorigin, header.crossOrigin().ascii().data()); | 279 EXPECT_STREQ(testCase.crossorigin, header.crossOrigin().ascii().data()); |
280 } | 280 } |
281 | 281 |
282 INSTANTIATE_TEST_CASE_P(LinkHeaderTest, | 282 INSTANTIATE_TEST_CASE_P(LinkHeaderTest, |
283 CrossOriginLinkHeaderTest, | 283 CrossOriginLinkHeaderTest, |
284 testing::ValuesIn(crossOriginTestCases)); | 284 testing::ValuesIn(crossOriginTestCases)); |
285 | 285 |
286 } // namespace | 286 } // namespace |
287 } // namespace blink | 287 } // namespace blink |
OLD | NEW |