OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include <stddef.h> |
| 6 |
5 #include <string> | 7 #include <string> |
6 #include <vector> | 8 #include <vector> |
7 | 9 |
8 #include "base/bind.h" | 10 #include "base/bind.h" |
9 #include "base/callback.h" | 11 #include "base/callback.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
12 #include "base/scoped_observer.h" | 14 #include "base/scoped_observer.h" |
13 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
14 #include "base/test/test_io_thread.h" | 16 #include "base/test/test_io_thread.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 ASSERT_EQ(0, read_callback.buffer()->data()[0]); | 203 ASSERT_EQ(0, read_callback.buffer()->data()[0]); |
202 for (unsigned char j = 1; j < kBufferSize; ++j) { | 204 for (unsigned char j = 1; j < kBufferSize; ++j) { |
203 ASSERT_EQ(i + j - 1, read_callback.buffer()->data()[j]); | 205 ASSERT_EQ(i + j - 1, read_callback.buffer()->data()[j]); |
204 } | 206 } |
205 } | 207 } |
206 | 208 |
207 conn->Close(); | 209 conn->Close(); |
208 } | 210 } |
209 | 211 |
210 } // namespace device | 212 } // namespace device |
OLD | NEW |