create_peerconnection_quality_test_fixture.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef API_TEST_CREATE_PEERCONNECTION_QUALITY_TEST_FIXTURE_H_
  11. #define API_TEST_CREATE_PEERCONNECTION_QUALITY_TEST_FIXTURE_H_
  12. #include <memory>
  13. #include <string>
  14. #include "api/test/audio_quality_analyzer_interface.h"
  15. #include "api/test/peerconnection_quality_test_fixture.h"
  16. #include "api/test/time_controller.h"
  17. #include "api/test/video_quality_analyzer_interface.h"
  18. namespace webrtc {
  19. namespace webrtc_pc_e2e {
  20. // API is in development. Can be changed/removed without notice.
  21. // Create test fixture to establish test call between Alice and Bob.
  22. // During the test Alice will be caller and Bob will answer the call.
  23. // |test_case_name| is a name of test case, that will be used for all metrics
  24. // reporting.
  25. // |time_controller| is used to manage all rtc::Thread's and TaskQueue
  26. // instances. Instance of |time_controller| have to outlive created fixture.
  27. // Returns a non-null PeerConnectionE2EQualityTestFixture instance.
  28. std::unique_ptr<PeerConnectionE2EQualityTestFixture>
  29. CreatePeerConnectionE2EQualityTestFixture(
  30. std::string test_case_name,
  31. TimeController& time_controller,
  32. std::unique_ptr<AudioQualityAnalyzerInterface> audio_quality_analyzer,
  33. std::unique_ptr<VideoQualityAnalyzerInterface> video_quality_analyzer);
  34. } // namespace webrtc_pc_e2e
  35. } // namespace webrtc
  36. #endif // API_TEST_CREATE_PEERCONNECTION_QUALITY_TEST_FIXTURE_H_