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

Unified Diff: services/video_capture/fake_device_unittest.cc

Issue 2502483003: [Mojo Video Capture] Cleanup naming of classes/files in services/video_capture (Closed)
Patch Set: Rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/video_capture/fake_device_test.cc ('k') | services/video_capture/mock_device_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/fake_device_unittest.cc
diff --git a/services/video_capture/fake_device_unittest.cc b/services/video_capture/fake_device_unittest.cc
index 93afe7ceabbdfefe805bca38b542244597b31464..75948e2fabad781272c1ba18ed789c44f122bafc 100644
--- a/services/video_capture/fake_device_unittest.cc
+++ b/services/video_capture/fake_device_unittest.cc
@@ -7,10 +7,10 @@
#include "media/base/video_frame.h"
#include "media/mojo/common/media_type_converters.h"
#include "services/video_capture/fake_device_test.h"
-#include "services/video_capture/mock_video_frame_receiver.h"
-#include "services/video_capture/public/cpp/video_capture_settings.h"
-#include "services/video_capture/public/interfaces/video_capture_device_factory.mojom.h"
-#include "services/video_capture/video_capture_service_test.h"
+#include "services/video_capture/mock_receiver.h"
+#include "services/video_capture/public/cpp/capture_settings.h"
+#include "services/video_capture/public/interfaces/device_factory.mojom.h"
+#include "services/video_capture/service_test.h"
using testing::_;
using testing::Invoke;
@@ -34,8 +34,8 @@ TEST_F(FakeDeviceTest, FrameCallbacksArrive) {
base::RunLoop wait_loop;
const int kNumFramesToWaitFor = 3;
int num_frames_arrived = 0;
- mojom::VideoFrameReceiverPtr receiver_proxy;
- MockVideoFrameReceiver receiver(mojo::GetProxy(&receiver_proxy));
+ mojom::ReceiverPtr receiver_proxy;
+ MockReceiver receiver(mojo::GetProxy(&receiver_proxy));
EXPECT_CALL(receiver, OnIncomingCapturedVideoFramePtr(_))
.WillRepeatedly(InvokeWithoutArgs(
[&wait_loop, &kNumFramesToWaitFor, &num_frames_arrived]() {
@@ -54,11 +54,11 @@ TEST_F(FakeDeviceTest, FrameCallbacksArrive) {
// format and have increasing timestamps.
TEST_F(FakeDeviceTest, ReceiveFramesFromFakeCaptureDevice) {
base::RunLoop wait_loop;
- mojom::VideoFrameReceiverPtr receiver_proxy;
+ mojom::ReceiverPtr receiver_proxy;
constexpr int num_frames_to_receive = 2;
FrameInfo received_frame_infos[num_frames_to_receive];
int received_frame_count = 0;
- MockVideoFrameReceiver receiver(mojo::GetProxy(&receiver_proxy));
+ MockReceiver receiver(mojo::GetProxy(&receiver_proxy));
EXPECT_CALL(receiver, OnIncomingCapturedVideoFramePtr(_))
.WillRepeatedly(
Invoke([&received_frame_infos, &received_frame_count,
« no previous file with comments | « services/video_capture/fake_device_test.cc ('k') | services/video_capture/mock_device_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698