| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "base/debug/task_annotator.h" |
| #include "base/pending_task.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| void TestTask(int* result) { |
| TEST(TaskAnnotatorTest, QueueAndRunTask) { |
| PendingTask pending_task(FROM_HERE, Bind(&TestTask, &result)); |
| annotator.DidQueueTask("TaskAnnotatorTest::Queue", pending_task); |
| "TaskAnnotatorTest::Queue", "TaskAnnotatorTest::Run", pending_task); |