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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/loader/fetch/ResourceLoaderOptions.h" 5 #include "platform/loader/fetch/ResourceLoaderOptions.h"
6 6
7 #include <type_traits>
7 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
8 #include <type_traits>
9 9
10 namespace blink { 10 namespace blink {
11 11
12 namespace { 12 namespace {
13 13
14 TEST(ResourceLoaderOptionsTest, DeepCopy) { 14 TEST(ResourceLoaderOptionsTest, DeepCopy) {
15 // Check that the fields of ResourceLoaderOptions are enums, except for 15 // Check that the fields of ResourceLoaderOptions are enums, except for
16 // initiatorInfo and securityOrigin. 16 // initiatorInfo and securityOrigin.
17 static_assert(std::is_enum<DataBufferingPolicy>::value, 17 static_assert(std::is_enum<DataBufferingPolicy>::value,
18 "DataBufferingPolicy should be an enum"); 18 "DataBufferingPolicy should be an enum");
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // FIXME: The checks for content equality/pointer inequality for 107 // FIXME: The checks for content equality/pointer inequality for
108 // securityOrigin here is not complete (i.e. m_filePath is not checked). A 108 // securityOrigin here is not complete (i.e. m_filePath is not checked). A
109 // unit test for SecurityOrigin::isolatedCopy() that covers these checks 109 // unit test for SecurityOrigin::isolatedCopy() that covers these checks
110 // should be added. 110 // should be added.
111 } 111 }
112 112
113 } // namespace 113 } // namespace
114 114
115 } // namespace blink 115 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698