| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/tests/test_websocket.h" | 5 #include "ppapi/tests/test_websocket.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "ppapi/c/dev/ppb_websocket_dev.h" | 10 #include "ppapi/c/dev/ppb_websocket_dev.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 if (result == PP_OK_COMPLETIONPENDING) | 190 if (result == PP_OK_COMPLETIONPENDING) |
| 191 result = callback.WaitForResult(); | 191 result = callback.WaitForResult(); |
| 192 ASSERT_EQ(PP_OK, result); | 192 ASSERT_EQ(PP_OK, result); |
| 193 ASSERT_TRUE(AreEqual(received_message, message)); | 193 ASSERT_TRUE(AreEqual(received_message, message)); |
| 194 ReleaseVar(received_message); | 194 ReleaseVar(received_message); |
| 195 core_interface_->ReleaseResource(ws); | 195 core_interface_->ReleaseResource(ws); |
| 196 | 196 |
| 197 PASS(); | 197 PASS(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 // TODO(toyoshim): Add tests for GetBufferedAmount(). |
| 201 // For now, the function doesn't work fine because update callback in WebKit is |
| 202 // not landed yet. |
| 203 |
| 200 // TODO(toyoshim): Add other function tests. | 204 // TODO(toyoshim): Add other function tests. |
| OLD | NEW |