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

Side by Side Diff: jingle/glue/channel_socket_adapter_unittest.cc

Issue 653203005: Roll WebRTC 7546:7549. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decreased the number of gyp changes in this patch since thats the only major change (the reset is j… Created 6 years, 1 month 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
« no previous file with comments | « jingle/glue/channel_socket_adapter.cc ('k') | jingle/glue/chrome_async_socket.h » ('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 "base/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "jingle/glue/channel_socket_adapter.h" 8 #include "jingle/glue/channel_socket_adapter.h"
9 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
11 #include "net/socket/socket.h" 11 #include "net/socket/socket.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/libjingle/source/talk/p2p/base/transportchannel.h" 14 #include "third_party/webrtc/p2p/base/transportchannel.h"
15 15
16 using net::IOBuffer; 16 using net::IOBuffer;
17 17
18 using testing::_; 18 using testing::_;
19 using testing::Return; 19 using testing::Return;
20 20
21 namespace jingle_glue { 21 namespace jingle_glue {
22 22
23 namespace { 23 namespace {
24 const int kBufferSize = 4096; 24 const int kBufferSize = 4096;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 .WillOnce(Return(SOCKET_ERROR)); 128 .WillOnce(Return(SOCKET_ERROR));
129 129
130 EXPECT_CALL(channel_, GetError()) 130 EXPECT_CALL(channel_, GetError())
131 .WillOnce(Return(EWOULDBLOCK)); 131 .WillOnce(Return(EWOULDBLOCK));
132 132
133 int result = target_->Write(buffer.get(), kTestDataSize, callback_); 133 int result = target_->Write(buffer.get(), kTestDataSize, callback_);
134 ASSERT_EQ(net::OK, result); 134 ASSERT_EQ(net::OK, result);
135 } 135 }
136 136
137 } // namespace jingle_glue 137 } // namespace jingle_glue
OLDNEW
« no previous file with comments | « jingle/glue/channel_socket_adapter.cc ('k') | jingle/glue/chrome_async_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698