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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // FIXME: The checks for content equality/pointer inequality for | 102 // FIXME: The checks for content equality/pointer inequality for |
103 // securityOrigin here is not complete (i.e. m_filePath is not checked). A | 103 // securityOrigin here is not complete (i.e. m_filePath is not checked). A |
104 // unit test for SecurityOrigin::isolatedCopy() that covers these checks | 104 // unit test for SecurityOrigin::isolatedCopy() that covers these checks |
105 // should be added. | 105 // should be added. |
106 } | 106 } |
107 | 107 |
108 } // namespace | 108 } // namespace |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
OLD | NEW |