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