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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_ |
6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_ | 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
12 #include "extensions/browser/api/cast_channel/cast_socket.h" | 13 #include "extensions/browser/api/cast_channel/cast_socket.h" |
13 #include "extensions/browser/api/cast_channel/cast_transport.h" | 14 #include "extensions/browser/api/cast_channel/cast_transport.h" |
14 #include "extensions/common/api/cast_channel/cast_channel.pb.h" | 15 #include "extensions/common/api/cast_channel/cast_channel.pb.h" |
15 #include "net/base/ip_endpoint.h" | 16 #include "net/base/ip_endpoint.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
17 | 18 |
18 namespace extensions { | 19 namespace extensions { |
19 namespace api { | 20 namespace api { |
20 namespace cast_channel { | 21 namespace cast_channel { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 AND_1_VALUE_PARAMS(rv)) { | 117 AND_1_VALUE_PARAMS(rv)) { |
117 base::MessageLoop::current()->PostTask( | 118 base::MessageLoop::current()->PostTask( |
118 FROM_HERE, base::Bind(testing::get<cb_idx>(args), rv)); | 119 FROM_HERE, base::Bind(testing::get<cb_idx>(args), rv)); |
119 } | 120 } |
120 | 121 |
121 } // namespace cast_channel | 122 } // namespace cast_channel |
122 } // namespace api | 123 } // namespace api |
123 } // namespace extensions | 124 } // namespace extensions |
124 | 125 |
125 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_ | 126 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_ |
OLD | NEW |