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

Unified Diff: webrtc/test/fake_texture_frame.cc

Issue 1554223002: Move fake-handle frame creation into test target. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add file Created 4 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/test/fake_texture_frame.cc
diff --git a/webrtc/test/fake_texture_frame.cc b/webrtc/test/fake_texture_frame.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a0eef533acaa996e4d27d11219c065b91e28c62f
--- /dev/null
+++ b/webrtc/test/fake_texture_frame.cc
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
kjellander_webrtc 2016/01/04 19:16:37 this should be 2016 though.
pbos-webrtc 2016/01/04 21:35:18 Done.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#include "webrtc/test/fake_texture_frame.h"
kjellander_webrtc 2016/01/04 19:16:38 nit: blank line after #include.
pbos-webrtc 2016/01/04 21:35:18 Done.
+namespace webrtc {
+namespace test {
+
+VideoFrame FakeNativeHandle::CreateFrame(FakeNativeHandle* native_handle,
+ int width,
+ int height,
+ uint32_t timestamp,
+ int64_t render_time_ms,
+ VideoRotation rotation) {
+ return VideoFrame(new rtc::RefCountedObject<FakeNativeHandleBuffer>(
+ native_handle, width, height),
+ timestamp, render_time_ms, rotation);
+}
+} // namespace test
+} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698