This source file includes following definitions.
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
#include "base/command_line.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_test_message_listener.h"
#include "chrome/browser/task_manager/task_manager.h"
#include "chrome/browser/task_manager/task_manager_browsertest_util.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_window.h"
#include "extensions/common/switches.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_Processes) {
ASSERT_TRUE(RunExtensionTest("processes/api")) << message_;
}
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ProcessesVsTaskManager) {
TaskManagerModel* model = TaskManager::GetInstance()->model();
EXPECT_EQ(0, model->update_requests_);
EXPECT_EQ(TaskManagerModel::IDLE, model->update_state_);
ExtensionTestMessageListener listener("ready", false);
ASSERT_TRUE(LoadExtension(
test_data_dir_.AppendASCII("processes").AppendASCII("onupdated")));
ASSERT_TRUE(listener.WaitUntilSatisfied());
EXPECT_EQ(1, model->update_requests_);
EXPECT_EQ(TaskManagerModel::TASK_PENDING, model->update_state_);
chrome::ShowTaskManager(browser());
EXPECT_EQ(2, model->update_requests_);
EXPECT_EQ(TaskManagerModel::TASK_PENDING, model->update_state_);
UnloadExtension(last_loaded_extension_id());
EXPECT_EQ(1, model->update_requests_);
}