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

Side by Side Diff: content/browser/renderer_host/media/video_capture_controller_unittest.cc

Issue 907113002: Reland:Refactored pixel format resize operations in media/video/capture into a function called Vide… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed size for VCC unittest. Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Unit test for VideoCaptureController. 5 // Unit test for VideoCaptureController.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 647
648 const VideoCaptureControllerID route(0x99); 648 const VideoCaptureControllerID route(0x99);
649 649
650 // Start with one client. 650 // Start with one client.
651 controller_->AddClient(route, 651 controller_->AddClient(route,
652 client_a_.get(), 652 client_a_.get(),
653 base::kNullProcessHandle, 653 base::kNullProcessHandle,
654 100, 654 100,
655 params); 655 params);
656 ASSERT_EQ(1, controller_->GetClientCount()); 656 ASSERT_EQ(1, controller_->GetClientCount());
657 device_->OnIncomingCapturedData(data, 657 device_->OnIncomingCapturedData(
658 0 /* length */, 658 data,
659 params.requested_format, 659 params.requested_format.ImageAllocationSize(),
660 0 /* rotation */, 660 params.requested_format,
661 base::TimeTicks()); 661 0 /* rotation */,
662 base::TimeTicks());
662 EXPECT_EQ(100, controller_->RemoveClient(route, client_a_.get())); 663 EXPECT_EQ(100, controller_->RemoveClient(route, client_a_.get()));
663 Mock::VerifyAndClearExpectations(client_a_.get()); 664 Mock::VerifyAndClearExpectations(client_a_.get());
664 } 665 }
665 } 666 }
666 667
667 } // namespace content 668 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_controller.cc ('k') | media/video/capture/file_video_capture_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698