OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdint.h> |
| 6 |
5 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
6 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
7 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/ppb_var.h" | 10 #include "ppapi/c/ppb_var.h" |
9 #include "ppapi/c/ppb_websocket.h" | 11 #include "ppapi/c/ppb_websocket.h" |
10 #include "ppapi/proxy/locking_resource_releaser.h" | 12 #include "ppapi/proxy/locking_resource_releaser.h" |
11 #include "ppapi/proxy/plugin_message_filter.h" | 13 #include "ppapi/proxy/plugin_message_filter.h" |
12 #include "ppapi/proxy/ppapi_messages.h" | 14 #include "ppapi/proxy/ppapi_messages.h" |
13 #include "ppapi/proxy/ppapi_proxy_test.h" | 15 #include "ppapi/proxy/ppapi_proxy_test.h" |
14 #include "ppapi/proxy/websocket_resource.h" | 16 #include "ppapi/proxy/websocket_resource.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 error_reply_params.set_result(PP_OK); | 159 error_reply_params.set_result(PP_OK); |
158 PluginMessageFilter::DispatchResourceReplyForTest( | 160 PluginMessageFilter::DispatchResourceReplyForTest( |
159 error_reply_params, PpapiPluginMsg_WebSocket_ErrorReply()); | 161 error_reply_params, PpapiPluginMsg_WebSocket_ErrorReply()); |
160 | 162 |
161 EXPECT_EQ(PP_ERROR_FAILED, g_callback_result); | 163 EXPECT_EQ(PP_ERROR_FAILED, g_callback_result); |
162 EXPECT_TRUE(g_callback_called); | 164 EXPECT_TRUE(g_callback_called); |
163 } | 165 } |
164 | 166 |
165 } // namespace proxy | 167 } // namespace proxy |
166 } // namespace ppapi | 168 } // namespace ppapi |
OLD | NEW |