// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdint.h> #include "chrome/browser/task_manager/test_task_manager.h" #include "testing/gtest/include/gtest/gtest.h" namespace task_manager { namespace { // Defines a concrete observer that will be used for testing. class TestObserver : public TaskManagerObserver { … }; // Defines a test to validate the behavior of the task manager in response to // adding and removing different kind of observers. class TaskManagerObserverTest : public testing::Test { … }; } // namespace // Validates that the minimum refresh time to be requested is one second. Also // validates the desired resource flags. TEST_F(TaskManagerObserverTest, Basic) { … } // Validates the behavior of the task manager in response to adding and // removing observers. TEST_F(TaskManagerObserverTest, TaskManagerResponseToObservers) { … } } // namespace task_manager