Home | History | Annotate | Download | only in tests
      1 // Copyright (c) 2013 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_VIDEO_SOURCE_H_
      6 #define PAPPI_TESTS_TEST_VIDEO_SOURCE_H_
      7 
      8 #include <string>
      9 
     10 #include "ppapi/c/ppb_core.h"
     11 #include "ppapi/c/private/ppb_video_source_private.h"
     12 #include "ppapi/tests/test_case.h"
     13 
     14 class TestVideoSource : public TestCase {
     15  public:
     16   explicit TestVideoSource(TestingInstance* instance);
     17   virtual ~TestVideoSource();
     18 
     19  private:
     20   // TestCase implementation.
     21   virtual bool Init();
     22   virtual void RunTests(const std::string& filter);
     23 
     24   // Overrides.
     25   virtual void HandleMessage(const pp::Var& message_data);
     26 
     27   std::string TestCreate();
     28   std::string TestGetFrame();
     29 
     30   const PPB_VideoSource_Private* ppb_video_source_private_interface_;
     31   const PPB_Core* ppb_core_interface_;
     32   NestedEvent event_;
     33   std::string stream_url_;
     34 };
     35 
     36 #endif  // PAPPI_TESTS_TEST_VIDEO_SOURCE_H_
     37