// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_TEST_TEST_PENDING_TASK_H_ #define BASE_TEST_TEST_PENDING_TASK_H_ #include <string> #include "base/functional/callback.h" #include "base/location.h" #include "base/time/time.h" namespace base { namespace trace_event { class TracedValue; class ConvertableToTraceFormat; } // namespace trace_event // TestPendingTask is a helper class for test TaskRunner // implementations. See test_simple_task_runner.h for example usage. struct TestPendingTask { … }; // gtest helpers which allow pretty printing of the tasks, very useful in unit // testing. std::ostream& operator<<(std::ostream& os, const TestPendingTask& task); void PrintTo(const TestPendingTask& task, std::ostream* os); } // namespace base #endif // BASE_TEST_TEST_PENDING_TASK_H_