Home | History | Annotate | Download | only in tests
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef PAPPI_TESTS_TEST_MEDIA_STREAM_VIDEO_TRACK_H_
      6 #define PAPPI_TESTS_TEST_MEDIA_STREAM_VIDEO_TRACK_H_
      7 
      8 #include <string>
      9 
     10 #include "ppapi/cpp/media_stream_video_track.h"
     11 #include "ppapi/tests/test_case.h"
     12 
     13 class TestMediaStreamVideoTrack : public TestCase {
     14  public:
     15   explicit TestMediaStreamVideoTrack(TestingInstance* instance);
     16   virtual ~TestMediaStreamVideoTrack();
     17 
     18  private:
     19   // TestCase implementation.
     20   virtual bool Init();
     21   virtual void RunTests(const std::string& filter);
     22 
     23   // Overrides.
     24   virtual void HandleMessage(const pp::Var& message_data);
     25 
     26   std::string TestCreate();
     27   std::string TestGetFrame();
     28   std::string TestConfigure();
     29 
     30   pp::MediaStreamVideoTrack video_track_;
     31 
     32   NestedEvent event_;
     33 };
     34 
     35 #endif  // PAPPI_TESTS_TEST_MEDIA_STREAM_VIDEO_TRACK_H_
     36