blob: e2e473017f530863324242de3c7589aa57cdfbeb [file] [log] [blame]
Danil Chapovalov33b716f2019-01-22 18:15:37 +01001/*
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
Danil Chapovalov710f3d32019-02-06 16:00:44 +010013#include <functional>
14#include <memory>
15
Danil Chapovalov33b716f2019-01-22 18:15:37 +010016#include "api/task_queue/task_queue_factory.h"
17#include "test/gtest.h"
18
19namespace webrtc {
20
21// Suite of tests to verify TaskQueue implementation with.
22// Example usage:
23//
24// namespace {
25//
Danil Chapovalov710f3d32019-02-06 16:00:44 +010026// using ::testing::Values;
Danil Chapovalov33b716f2019-01-22 18:15:37 +010027// using ::webrtc::TaskQueueTest;
Danil Chapovalov710f3d32019-02-06 16:00:44 +010028//
29// std::unique_ptr<webrtc::TaskQueueFactory> CreateMyFactory();
30//
31// INSTANTIATE_TEST_SUITE_P(My, TaskQueueTest, Values(CreateMyFactory));
Danil Chapovalov33b716f2019-01-22 18:15:37 +010032//
33// } // namespace
Danil Chapovalov710f3d32019-02-06 16:00:44 +010034class TaskQueueTest : public ::testing::TestWithParam<
35 std::function<std::unique_ptr<TaskQueueFactory>()>> {
36};
Danil Chapovalov33b716f2019-01-22 18:15:37 +010037
38} // namespace webrtc
39
40#endif // API_TASK_QUEUE_TASK_QUEUE_TEST_H_