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 "ppapi/tests/test_tcp_socket_private.h" | 5 #include "ppapi/tests/test_tcp_socket_private.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <stdlib.h> | 8 #include <stdlib.h> |
8 | 9 |
9 #include <new> | 10 #include <new> |
10 | 11 |
11 #include "ppapi/cpp/private/tcp_socket_private.h" | 12 #include "ppapi/cpp/private/tcp_socket_private.h" |
12 #include "ppapi/tests/test_utils.h" | 13 #include "ppapi/tests/test_utils.h" |
13 #include "ppapi/tests/testing_instance.h" | 14 #include "ppapi/tests/testing_instance.h" |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 if (cb.result() < 0) | 256 if (cb.result() < 0) |
256 return cb.result(); | 257 return cb.result(); |
257 if (cb.result() == 0) | 258 if (cb.result() == 0) |
258 return PP_ERROR_FAILED; | 259 return PP_ERROR_FAILED; |
259 written += cb.result(); | 260 written += cb.result(); |
260 } | 261 } |
261 if (written != s.size()) | 262 if (written != s.size()) |
262 return PP_ERROR_FAILED; | 263 return PP_ERROR_FAILED; |
263 return PP_OK; | 264 return PP_OK; |
264 } | 265 } |
OLD | NEW |