task_queue_test.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright 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_TASK_QUEUE_TASK_QUEUE_TEST_H_
  11. #define API_TASK_QUEUE_TASK_QUEUE_TEST_H_
  12. #include <functional>
  13. #include <memory>
  14. #include "api/task_queue/task_queue_factory.h"
  15. #include "test/gtest.h"
  16. namespace webrtc {
  17. // Suite of tests to verify TaskQueue implementation with.
  18. // Example usage:
  19. //
  20. // namespace {
  21. //
  22. // using ::testing::Values;
  23. // using ::webrtc::TaskQueueTest;
  24. //
  25. // std::unique_ptr<webrtc::TaskQueueFactory> CreateMyFactory();
  26. //
  27. // INSTANTIATE_TEST_SUITE_P(My, TaskQueueTest, Values(CreateMyFactory));
  28. //
  29. // } // namespace
  30. class TaskQueueTest : public ::testing::TestWithParam<
  31. std::function<std::unique_ptr<TaskQueueFactory>()>> {
  32. };
  33. } // namespace webrtc
  34. #endif // API_TASK_QUEUE_TASK_QUEUE_TEST_H_