| 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 #ifndef MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_ID_H_ | 5 #ifndef MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_ID_H_ |
| 6 #define MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_ID_H_ | 6 #define MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_ID_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <functional> | 11 #include <functional> |
| 12 #include <ostream> | 12 #include <ostream> |
| 13 | 13 |
| 14 #include "base/gtest_prod_util.h" | 14 #include "mojo/edk/util/gtest_prod_utils.h" |
| 15 #include "mojo/public/cpp/system/macros.h" | 15 #include "mojo/public/cpp/system/macros.h" |
| 16 | 16 |
| 17 namespace mojo { | 17 namespace mojo { |
| 18 namespace system { | 18 namespace system { |
| 19 | 19 |
| 20 // ChannelEndpointId ----------------------------------------------------------- | 20 // ChannelEndpointId ----------------------------------------------------------- |
| 21 | 21 |
| 22 class LocalChannelEndpointIdGenerator; | 22 class LocalChannelEndpointIdGenerator; |
| 23 FORWARD_DECLARE_TEST(LocalChannelEndpointIdGeneratorTest, WrapAround); | 23 FORWARD_DECLARE_TEST(LocalChannelEndpointIdGeneratorTest, WrapAround); |
| 24 FORWARD_DECLARE_TEST(RemoteChannelEndpointIdGeneratorTest, WrapAround); | 24 FORWARD_DECLARE_TEST(RemoteChannelEndpointIdGeneratorTest, WrapAround); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 template <> | 135 template <> |
| 136 struct hash<mojo::system::ChannelEndpointId> { | 136 struct hash<mojo::system::ChannelEndpointId> { |
| 137 size_t operator()(mojo::system::ChannelEndpointId channel_endpoint_id) const { | 137 size_t operator()(mojo::system::ChannelEndpointId channel_endpoint_id) const { |
| 138 return static_cast<size_t>(channel_endpoint_id.value()); | 138 return static_cast<size_t>(channel_endpoint_id.value()); |
| 139 } | 139 } |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace std | 142 } // namespace std |
| 143 | 143 |
| 144 #endif // MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_ID_H_ | 144 #endif // MOJO_EDK_SYSTEM_CHANNEL_ENDPOINT_ID_H_ |
| OLD | NEW |