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

Side by Side Diff: third_party/WebKit/Source/platform/loader/LinkHeaderTest.cpp

Issue 2739633003: platform/loader: move LinkHeader from network/ to loader/ (Closed)
Patch Set: gen gen --check passes Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
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/loader/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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/loader/LinkHeader.cpp ('k') | third_party/WebKit/Source/platform/network/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698