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

Side by Side Diff: extensions/browser/api/cast_channel/cast_transport_unittest.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 "extensions/browser/api/cast_channel/cast_transport.h" 5 #include "extensions/browser/api/cast_channel/cast_transport.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h>
8 #include <queue> 9 #include <queue>
9 10
11 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 13 #include "base/run_loop.h"
12 #include "base/test/simple_test_clock.h" 14 #include "base/test/simple_test_clock.h"
13 #include "extensions/browser/api/cast_channel/cast_framer.h" 15 #include "extensions/browser/api/cast_channel/cast_framer.h"
14 #include "extensions/browser/api/cast_channel/cast_socket.h" 16 #include "extensions/browser/api/cast_channel/cast_socket.h"
15 #include "extensions/browser/api/cast_channel/cast_test_util.h" 17 #include "extensions/browser/api/cast_channel/cast_test_util.h"
16 #include "extensions/browser/api/cast_channel/logger.h" 18 #include "extensions/browser/api/cast_channel/logger.h"
17 #include "extensions/browser/api/cast_channel/logger_util.h" 19 #include "extensions/browser/api/cast_channel/logger_util.h"
18 #include "extensions/common/api/cast_channel/cast_channel.pb.h" 20 #include "extensions/common/api/cast_channel/cast_channel.pb.h"
19 #include "net/base/completion_callback.h" 21 #include "net/base/completion_callback.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 MOCK_METHOD3(Read, 125 MOCK_METHOD3(Read,
124 int(net::IOBuffer* buf, 126 int(net::IOBuffer* buf,
125 int buf_len, 127 int buf_len,
126 const net::CompletionCallback& callback)); 128 const net::CompletionCallback& callback));
127 129
128 MOCK_METHOD3(Write, 130 MOCK_METHOD3(Write,
129 int(net::IOBuffer* buf, 131 int(net::IOBuffer* buf,
130 int buf_len, 132 int buf_len,
131 const net::CompletionCallback& callback)); 133 const net::CompletionCallback& callback));
132 134
133 virtual int SetReceiveBufferSize(int32 size) { 135 virtual int SetReceiveBufferSize(int32_t size) {
134 NOTREACHED(); 136 NOTREACHED();
135 return 0; 137 return 0;
136 } 138 }
137 139
138 virtual int SetSendBufferSize(int32 size) { 140 virtual int SetSendBufferSize(int32_t size) {
139 NOTREACHED(); 141 NOTREACHED();
140 return 0; 142 return 0;
141 } 143 }
142 }; 144 };
143 145
144 class CastTransportTest : public testing::Test { 146 class CastTransportTest : public testing::Test {
145 public: 147 public:
146 CastTransportTest() 148 CastTransportTest()
147 : logger_( 149 : logger_(
148 new Logger(make_scoped_ptr<base::Clock>(new base::SimpleTestClock), 150 new Logger(make_scoped_ptr<base::Clock>(new base::SimpleTestClock),
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 MessageFramer::MessageHeader::header_size() - 1)), 677 MessageFramer::MessageHeader::header_size() - 1)),
676 Return(serialized_message.size() - 678 Return(serialized_message.size() -
677 MessageFramer::MessageHeader::header_size()))) 679 MessageFramer::MessageHeader::header_size())))
678 .RetiresOnSaturation(); 680 .RetiresOnSaturation();
679 EXPECT_CALL(*delegate_, OnError(CHANNEL_ERROR_INVALID_MESSAGE)); 681 EXPECT_CALL(*delegate_, OnError(CHANNEL_ERROR_INVALID_MESSAGE));
680 transport_->Start(); 682 transport_->Start();
681 } 683 }
682 } // namespace cast_channel 684 } // namespace cast_channel
683 } // namespace api 685 } // namespace api
684 } // namespace extensions 686 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_transport.cc ('k') | extensions/browser/api/cast_channel/keep_alive_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698