Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: base/async_socket_io_handler_unittest.cc

Issue 23137015: Move async_socket_io_handler.* from media/ to base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/async_socket_io_handler_posix.cc ('k') | base/async_socket_io_handler_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "media/audio/async_socket_io_handler.h" 5 #include "base/async_socket_io_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace { 10 namespace {
11 const char kAsyncSocketIoTestString[] = "Hello, AsyncSocketIoHandler"; 11 const char kAsyncSocketIoTestString[] = "Hello, AsyncSocketIoHandler";
12 const size_t kAsyncSocketIoTestStringLength = 12 const size_t kAsyncSocketIoTestStringLength =
13 arraysize(kAsyncSocketIoTestString); 13 arraysize(kAsyncSocketIoTestString);
14 14
15 class TestSocketReader { 15 class TestSocketReader {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 const int kReadOperationCount = 1; 160 const int kReadOperationCount = 1;
161 TestSocketReader reader(&pair[0], kReadOperationCount, false, true); 161 TestSocketReader reader(&pair[0], kReadOperationCount, false, true);
162 EXPECT_TRUE(reader.IssueRead()); 162 EXPECT_TRUE(reader.IssueRead());
163 163
164 pair[1].Close(); 164 pair[1].Close();
165 165
166 base::MessageLoop::current()->Run(); 166 base::MessageLoop::current()->Run();
167 EXPECT_EQ(kReadOperationCount, reader.callbacks_received()); 167 EXPECT_EQ(kReadOperationCount, reader.callbacks_received());
168 } 168 }
OLDNEW
« no previous file with comments | « base/async_socket_io_handler_posix.cc ('k') | base/async_socket_io_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698