OLD | NEW |
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 Loading... |
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 |
OLD | NEW |