Fix some chromium-style warnings in webrtc/test/
BUG=163 R=phoglund@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1907004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4428 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -19,31 +19,42 @@ class RandomEncryption : public webrtc::Encryption {
|
||||
public:
|
||||
explicit RandomEncryption(unsigned int rand_seed);
|
||||
|
||||
virtual void encrypt(int channel_no, unsigned char* in_data,
|
||||
unsigned char* out_data, int bytes_in, int* bytes_out) {
|
||||
virtual void encrypt(int channel_no,
|
||||
unsigned char* in_data,
|
||||
unsigned char* out_data,
|
||||
int bytes_in,
|
||||
int* bytes_out) OVERRIDE {
|
||||
GenerateRandomData(out_data, bytes_in, bytes_out);
|
||||
}
|
||||
|
||||
virtual void decrypt(int channel_no, unsigned char* in_data,
|
||||
unsigned char* out_data, int bytes_in, int* bytes_out) {
|
||||
virtual void decrypt(int channel_no,
|
||||
unsigned char* in_data,
|
||||
unsigned char* out_data,
|
||||
int bytes_in,
|
||||
int* bytes_out) OVERRIDE {
|
||||
GenerateRandomData(out_data, bytes_in, bytes_out);
|
||||
}
|
||||
|
||||
virtual void encrypt_rtcp(int channel_no, unsigned char* in_data,
|
||||
unsigned char* out_data, int bytes_in,
|
||||
int* bytes_out) {
|
||||
virtual void encrypt_rtcp(int channel_no,
|
||||
unsigned char* in_data,
|
||||
unsigned char* out_data,
|
||||
int bytes_in,
|
||||
int* bytes_out) OVERRIDE {
|
||||
GenerateRandomData(out_data, bytes_in, bytes_out);
|
||||
}
|
||||
|
||||
virtual void decrypt_rtcp(int channel_no, unsigned char* in_data,
|
||||
unsigned char* out_data, int bytes_in,
|
||||
int* bytes_out) {
|
||||
virtual void decrypt_rtcp(int channel_no,
|
||||
unsigned char* in_data,
|
||||
unsigned char* out_data,
|
||||
int bytes_in,
|
||||
int* bytes_out) OVERRIDE {
|
||||
GenerateRandomData(out_data, bytes_in, bytes_out);
|
||||
}
|
||||
|
||||
private:
|
||||
// Generates some completely random data with roughly the right length.
|
||||
void GenerateRandomData(unsigned char* out_data, int bytes_in,
|
||||
void GenerateRandomData(unsigned char* out_data,
|
||||
int bytes_in,
|
||||
int* bytes_out);
|
||||
|
||||
// Makes up a length within +- 50 of the original length, without
|
||||
|
||||
Reference in New Issue
Block a user