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

Side by Side Diff: remoting/base/codec_test.cc

Issue 5139006: FBTF: Remove unneeded headers from base/ (part 10) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac, cros build Created 10 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 | Annotate | Revision Log
« no previous file with comments | « printing/image_win.cc ('k') | remoting/base/decoder.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <deque>
6 #include <stdlib.h> 5 #include <stdlib.h>
7 6
7 #include <deque>
8
9 #include "base/task.h"
8 #include "gfx/rect.h" 10 #include "gfx/rect.h"
9 #include "media/base/video_frame.h" 11 #include "media/base/video_frame.h"
10 #include "remoting/base/codec_test.h" 12 #include "remoting/base/codec_test.h"
11 #include "remoting/base/decoder.h" 13 #include "remoting/base/decoder.h"
12 #include "remoting/base/encoder.h" 14 #include "remoting/base/encoder.h"
13 #include "remoting/base/mock_objects.h" 15 #include "remoting/base/mock_objects.h"
14 #include "remoting/base/util.h" 16 #include "remoting/base/util.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 18
17 static const int kWidth = 320; 19 static const int kWidth = 320;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 State state_; 148 State state_;
147 bool strict_; 149 bool strict_;
148 150
149 std::deque<gfx::Rect> rects_; 151 std::deque<gfx::Rect> rects_;
150 152
151 DISALLOW_COPY_AND_ASSIGN(EncoderMessageTester); 153 DISALLOW_COPY_AND_ASSIGN(EncoderMessageTester);
152 }; 154 };
153 155
154 class DecoderTester { 156 class DecoderTester {
155 public: 157 public:
156 DecoderTester(Decoder* decoder) 158 explicit DecoderTester(Decoder* decoder)
157 : strict_(false), 159 : strict_(false),
158 decoder_(decoder), 160 decoder_(decoder),
159 decode_done_(false) { 161 decode_done_(false) {
160 media::VideoFrame::CreateFrame(media::VideoFrame::RGB32, 162 media::VideoFrame::CreateFrame(media::VideoFrame::RGB32,
161 kWidth, kHeight, 163 kWidth, kHeight,
162 base::TimeDelta(), 164 base::TimeDelta(),
163 base::TimeDelta(), &frame_); 165 base::TimeDelta(), &frame_);
164 EXPECT_TRUE(frame_.get()); 166 EXPECT_TRUE(frame_.get());
165 } 167 }
166 168
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, 427 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data,
426 kTestRects + 2, 1); 428 kTestRects + 2, 1);
427 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, 429 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data,
428 kTestRects + 3, 2); 430 kTestRects + 3, 2);
429 delete [] memory; 431 delete [] memory;
430 } 432 }
431 433
432 } // namespace remoting 434 } // namespace remoting
433 435
434 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::DecoderTester); 436 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::DecoderTester);
OLDNEW
« no previous file with comments | « printing/image_win.cc ('k') | remoting/base/decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698