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

Side by Side Diff: chrome/renderer/gpu_video_decoder_host_unittest.cc

Issue 6413036: Another big out-of-lining of test code. Hits a lot of gmock objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lei comments 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
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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "chrome/common/gpu_messages.h" 6 #include "chrome/common/gpu_messages.h"
7 #include "chrome/common/message_router.h" 7 #include "chrome/common/message_router.h"
8 #include "chrome/renderer/gpu_video_decoder_host.h" 8 #include "chrome/renderer/gpu_video_decoder_host.h"
9 #include "media/video/mock_objects.h" 9 #include "media/video/video_mock_objects.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using testing::_; 13 using testing::_;
14 using testing::DoAll; 14 using testing::DoAll;
15 using testing::NotNull; 15 using testing::NotNull;
16 using testing::Return; 16 using testing::Return;
17 using testing::SetArgumentPointee; 17 using testing::SetArgumentPointee;
18 18
19 static const int kContextRouteId = 50; 19 static const int kContextRouteId = 50;
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 TEST_F(GpuVideoDecoderHostTest, ProduceVideoFrame) { 248 TEST_F(GpuVideoDecoderHostTest, ProduceVideoFrame) {
249 Initialize(); 249 Initialize();
250 AllocateVideoFrames(); 250 AllocateVideoFrames();
251 ProduceVideoFrame(0); 251 ProduceVideoFrame(0);
252 ReleaseVideoFrames(); 252 ReleaseVideoFrames();
253 AllocateVideoFrames(); 253 AllocateVideoFrames();
254 ProduceVideoFrame(kVideoFrames); 254 ProduceVideoFrame(kVideoFrames);
255 ReleaseVideoFrames(); 255 ReleaseVideoFrames();
256 Uninitialize(); 256 Uninitialize();
257 } 257 }
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_video_decoder_unittest.cc ('k') | chrome/renderer/safe_browsing/mock_feature_extractor_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698