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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « remoting/base/DEPS ('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> 5 #include <deque>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include "gfx/rect.h"
9 #include "media/base/video_frame.h" 8 #include "media/base/video_frame.h"
10 #include "remoting/base/codec_test.h" 9 #include "remoting/base/codec_test.h"
11 #include "remoting/base/decoder.h" 10 #include "remoting/base/decoder.h"
12 #include "remoting/base/encoder.h" 11 #include "remoting/base/encoder.h"
13 #include "remoting/base/mock_objects.h" 12 #include "remoting/base/mock_objects.h"
14 #include "remoting/base/util.h" 13 #include "remoting/base/util.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/gfx/rect.h"
16 16
17 static const int kWidth = 320; 17 static const int kWidth = 320;
18 static const int kHeight = 240; 18 static const int kHeight = 240;
19 static const int kBytesPerPixel = 4; 19 static const int kBytesPerPixel = 4;
20 20
21 // Some sample rects for testing. 21 // Some sample rects for testing.
22 static const gfx::Rect kTestRects[] = { 22 static const gfx::Rect kTestRects[] = {
23 gfx::Rect(0, 0, kWidth, kHeight), 23 gfx::Rect(0, 0, kWidth, kHeight),
24 gfx::Rect(0, 0, kWidth / 2, kHeight / 2), 24 gfx::Rect(0, 0, kWidth / 2, kHeight / 2),
25 gfx::Rect(kWidth / 2, kHeight / 2, kWidth / 2, kHeight / 2), 25 gfx::Rect(kWidth / 2, kHeight / 2, kWidth / 2, kHeight / 2),
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, 346 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data,
347 kTestRects + 2, 1); 347 kTestRects + 2, 1);
348 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data, 348 TestEncodingRects(encoder, &encoder_tester, &decoder_tester, data,
349 kTestRects + 3, 2); 349 kTestRects + 3, 2);
350 delete [] memory; 350 delete [] memory;
351 } 351 }
352 352
353 } // namespace remoting 353 } // namespace remoting
354 354
355 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::DecoderTester); 355 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::DecoderTester);
OLDNEW
« no previous file with comments | « remoting/base/DEPS ('k') | remoting/base/decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698