diff options
author | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-24 11:23:23 +0000 |
---|---|---|
committer | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-24 11:23:23 +0000 |
commit | 3ea428de78da86b78ea3fd0fb844d9bdc72bb702 (patch) | |
tree | 97a8e4e90339948fe5264397c55a9222a4e9e505 /remoting | |
parent | 65969a96f4c3b7699cd7aa8499aa38dec274f354 (diff) | |
download | chromium_src-3ea428de78da86b78ea3fd0fb844d9bdc72bb702.zip chromium_src-3ea428de78da86b78ea3fd0fb844d9bdc72bb702.tar.gz chromium_src-3ea428de78da86b78ea3fd0fb844d9bdc72bb702.tar.bz2 |
Fix mismatched new[]/delete in EncoderVerbatimTest.TestEncoder
+ Fix presubmit warnings about tabs near line 270
+ svn pset svn:eol-style LF remoting/base/codec_test.cc
BUG=50126
TBR=hclam
TEST=bots
Review URL: http://codereview.chromium.org/3051012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/base/codec_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/remoting/base/codec_test.cc b/remoting/base/codec_test.cc index b97293f..26a3f65 100644 --- a/remoting/base/codec_test.cc +++ b/remoting/base/codec_test.cc @@ -266,9 +266,9 @@ class EncoderTester { end_update->mutable_end_update_stream(); decoder_tester_->ReceivedMessage(end_update); } - } else { + } else { delete message; - } + } } void AddRects(const gfx::Rect* rects, int count) { @@ -339,7 +339,7 @@ void TestEncoder(Encoder* encoder, bool strict) { TestEncodingRects(encoder, &tester, data, kTestRects + 1, 1); TestEncodingRects(encoder, &tester, data, kTestRects + 2, 1); TestEncodingRects(encoder, &tester, data, kTestRects + 3, 2); - delete memory; + delete [] memory; } static void TestEncodingRects(Encoder* encoder, @@ -382,7 +382,7 @@ void TestEncoderDecoder(Encoder* encoder, Decoder* decoder, bool strict) { kTestRects + 2, 1); TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, kTestRects + 3, 2); - delete memory; + delete [] memory; } } // namespace remoting |