| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "mojo/public/cpp/bindings/lib/wtf_hash_util.h" | 5 #include "mojo/public/cpp/bindings/lib/wtf_hash_util.h" |
| 6 | 6 |
| 7 #include "mojo/public/interfaces/bindings/tests/test_structs.mojom-blink.h" | 7 #include "mojo/public/interfaces/bindings/tests/test_structs.mojom-blink.h" |
| 8 #include "mojo/public/interfaces/bindings/tests/test_wtf_types.mojom-blink.h" | 8 #include "mojo/public/interfaces/bindings/tests/test_wtf_types.mojom-blink.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "third_party/WebKit/Source/wtf/HashFunctions.h" | 10 #include "third_party/WebKit/Source/platform/wtf/HashFunctions.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 namespace test { | 13 namespace test { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 using WTFHashTest = testing::Test; | 16 using WTFHashTest = testing::Test; |
| 17 | 17 |
| 18 TEST_F(WTFHashTest, NestedStruct) { | 18 TEST_F(WTFHashTest, NestedStruct) { |
| 19 // Just check that this template instantiation compiles. | 19 // Just check that this template instantiation compiles. |
| 20 ASSERT_EQ(::mojo::internal::Hash( | 20 ASSERT_EQ(::mojo::internal::Hash( |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 // Nested in interface. | 51 // Nested in interface. |
| 52 ASSERT_EQ(WTF::DefaultHash<blink::TestWTF::NestedEnum>::Hash().GetHash( | 52 ASSERT_EQ(WTF::DefaultHash<blink::TestWTF::NestedEnum>::Hash().GetHash( |
| 53 blink::TestWTF::NestedEnum::E0), | 53 blink::TestWTF::NestedEnum::E0), |
| 54 WTF::DefaultHash<blink::TestWTF::NestedEnum>::Hash().GetHash( | 54 WTF::DefaultHash<blink::TestWTF::NestedEnum>::Hash().GetHash( |
| 55 blink::TestWTF::NestedEnum::E0)); | 55 blink::TestWTF::NestedEnum::E0)); |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace | 58 } // namespace |
| 59 } // namespace test | 59 } // namespace test |
| 60 } // namespace mojo | 60 } // namespace mojo |
| OLD | NEW |