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

Side by Side Diff: services/video_capture/mock_receiver.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef SERVICES_VIDEO_CAPTURE_MOCK_VIDEO_FRAME_RECEIVER_H_ 5 #ifndef SERVICES_VIDEO_CAPTURE_MOCK_RECEIVER_H_
6 #define SERVICES_VIDEO_CAPTURE_MOCK_VIDEO_FRAME_RECEIVER_H_ 6 #define SERVICES_VIDEO_CAPTURE_MOCK_RECEIVER_H_
7 7
8 #include "media/mojo/interfaces/media_types.mojom.h" 8 #include "media/mojo/interfaces/media_types.mojom.h"
9 #include "mojo/public/cpp/bindings/binding.h" 9 #include "mojo/public/cpp/bindings/binding.h"
10 #include "services/video_capture/public/interfaces/video_frame_receiver.mojom.h" 10 #include "services/video_capture/public/interfaces/receiver.mojom.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace video_capture { 13 namespace video_capture {
14 14
15 class MockVideoFrameReceiver : public mojom::VideoFrameReceiver { 15 class MockReceiver : public mojom::Receiver {
16 public: 16 public:
17 MockVideoFrameReceiver(mojom::VideoFrameReceiverRequest request); 17 MockReceiver(mojom::ReceiverRequest request);
18 ~MockVideoFrameReceiver() override; 18 ~MockReceiver() override;
19 19
20 // Use forwarding method to work around gmock not supporting move-only types. 20 // Use forwarding method to work around gmock not supporting move-only types.
21 void OnIncomingCapturedVideoFrame(media::mojom::VideoFramePtr frame) override; 21 void OnIncomingCapturedVideoFrame(media::mojom::VideoFramePtr frame) override;
22 22
23 MOCK_METHOD1(OnIncomingCapturedVideoFramePtr, 23 MOCK_METHOD1(OnIncomingCapturedVideoFramePtr,
24 void(const media::mojom::VideoFramePtr* frame)); 24 void(const media::mojom::VideoFramePtr* frame));
25 MOCK_METHOD0(OnError, void()); 25 MOCK_METHOD0(OnError, void());
26 MOCK_METHOD1(OnLog, void(const std::string&)); 26 MOCK_METHOD1(OnLog, void(const std::string&));
27 MOCK_METHOD1(OnBufferDestroyed, void(int32_t)); 27 MOCK_METHOD1(OnBufferDestroyed, void(int32_t));
28 28
29 private: 29 private:
30 const mojo::Binding<mojom::VideoFrameReceiver> binding_; 30 const mojo::Binding<mojom::Receiver> binding_;
31 }; 31 };
32 32
33 } // namespace video_capture 33 } // namespace video_capture
34 34
35 #endif // SERVICES_VIDEO_CAPTURE_MOCK_VIDEO_FRAME_RECEIVER_H_ 35 #endif // SERVICES_VIDEO_CAPTURE_MOCK_RECEIVER_H_
OLDNEW
« no previous file with comments | « services/video_capture/mock_media_device_impl.cc ('k') | services/video_capture/mock_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698