| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Tests PPB_MediaStreamVideoTrack interface. | 5 // Tests PPB_MediaStreamVideoTrack interface. |
| 6 | 6 |
| 7 #include "ppapi/tests/test_media_stream_video_track.h" | 7 #include "ppapi/tests/test_media_stream_video_track.h" |
| 8 | 8 |
| 9 #include <stddef.h> |
| 10 #include <stdint.h> |
| 11 |
| 9 #include "ppapi/c/private/ppb_testing_private.h" | 12 #include "ppapi/c/private/ppb_testing_private.h" |
| 10 #include "ppapi/cpp/completion_callback.h" | 13 #include "ppapi/cpp/completion_callback.h" |
| 11 #include "ppapi/cpp/instance.h" | 14 #include "ppapi/cpp/instance.h" |
| 12 #include "ppapi/cpp/var.h" | 15 #include "ppapi/cpp/var.h" |
| 13 #include "ppapi/cpp/video_frame.h" | 16 #include "ppapi/cpp/video_frame.h" |
| 14 #include "ppapi/tests/test_utils.h" | 17 #include "ppapi/tests/test_utils.h" |
| 15 #include "ppapi/tests/testing_instance.h" | 18 #include "ppapi/tests/testing_instance.h" |
| 16 | 19 |
| 17 REGISTER_TEST_CASE(MediaStreamVideoTrack); | 20 REGISTER_TEST_CASE(MediaStreamVideoTrack); |
| 18 | 21 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 video_track_.RecycleFrame(frame); | 230 video_track_.RecycleFrame(frame); |
| 228 } | 231 } |
| 229 } | 232 } |
| 230 | 233 |
| 231 // Close the track. | 234 // Close the track. |
| 232 video_track_.Close(); | 235 video_track_.Close(); |
| 233 ASSERT_TRUE(video_track_.HasEnded()); | 236 ASSERT_TRUE(video_track_.HasEnded()); |
| 234 video_track_ = pp::MediaStreamVideoTrack(); | 237 video_track_ = pp::MediaStreamVideoTrack(); |
| 235 PASS(); | 238 PASS(); |
| 236 } | 239 } |
| OLD | NEW |