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

Side by Side Diff: talk/app/webrtc/test/mockpeerconnectionobservers.h

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 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
« no previous file with comments | « talk/app/webrtc/test/fakemediastreamsignaling.h ('k') | talk/app/webrtc/videosource.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 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 public: 91 public:
92 explicit MockDataChannelObserver(webrtc::DataChannelInterface* channel) 92 explicit MockDataChannelObserver(webrtc::DataChannelInterface* channel)
93 : channel_(channel), received_message_count_(0) { 93 : channel_(channel), received_message_count_(0) {
94 channel_->RegisterObserver(this); 94 channel_->RegisterObserver(this);
95 state_ = channel_->state(); 95 state_ = channel_->state();
96 } 96 }
97 virtual ~MockDataChannelObserver() { 97 virtual ~MockDataChannelObserver() {
98 channel_->UnregisterObserver(); 98 channel_->UnregisterObserver();
99 } 99 }
100 100
101 void OnBufferedAmountChange(uint64 previous_amount) override {} 101 void OnBufferedAmountChange(uint64_t previous_amount) override {}
102 102
103 void OnStateChange() override { state_ = channel_->state(); } 103 void OnStateChange() override { state_ = channel_->state(); }
104 void OnMessage(const DataBuffer& buffer) override { 104 void OnMessage(const DataBuffer& buffer) override {
105 last_message_.assign(buffer.data.data<char>(), buffer.data.size()); 105 last_message_.assign(buffer.data.data<char>(), buffer.data.size());
106 ++received_message_count_; 106 ++received_message_count_;
107 } 107 }
108 108
109 bool IsOpen() const { return state_ == DataChannelInterface::kOpen; } 109 bool IsOpen() const { return state_ == DataChannelInterface::kOpen; }
110 const std::string& last_message() const { return last_message_; } 110 const std::string& last_message() const { return last_message_; }
111 size_t received_message_count() const { return received_message_count_; } 111 size_t received_message_count() const { return received_message_count_; }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 int bytes_sent; 234 int bytes_sent;
235 int available_receive_bandwidth; 235 int available_receive_bandwidth;
236 std::string dtls_cipher; 236 std::string dtls_cipher;
237 std::string srtp_cipher; 237 std::string srtp_cipher;
238 } stats_; 238 } stats_;
239 }; 239 };
240 240
241 } // namespace webrtc 241 } // namespace webrtc
242 242
243 #endif // TALK_APP_WEBRTC_TEST_MOCKPEERCONNECTIONOBSERVERS_H_ 243 #endif // TALK_APP_WEBRTC_TEST_MOCKPEERCONNECTIONOBSERVERS_H_
OLDNEW
« no previous file with comments | « talk/app/webrtc/test/fakemediastreamsignaling.h ('k') | talk/app/webrtc/videosource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698