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