| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/macros.h" |
| 5 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 6 #include "chrome/browser/extensions/extension_browsertest.h" | 7 #include "chrome/browser/extensions/extension_browsertest.h" |
| 7 #include "chrome/browser/task_management/providers/web_contents/web_contents_tag
s_manager.h" | 8 #include "chrome/browser/task_management/providers/web_contents/web_contents_tag
s_manager.h" |
| 8 #include "chrome/browser/task_management/task_management_browsertest_util.h" | 9 #include "chrome/browser/task_management/task_management_browsertest_util.h" |
| 9 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| 10 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
| 11 #include "content/public/common/content_switches.h" | 12 #include "content/public/common/content_switches.h" |
| 12 #include "extensions/common/switches.h" | 13 #include "extensions/common/switches.h" |
| 13 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 14 | 15 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 EXPECT_EQ(Task::RENDERER, task->GetType()); | 118 EXPECT_EQ(Task::RENDERER, task->GetType()); |
| 118 EXPECT_EQ(GetBackgroundTaskExpectedName(extension), task->title()); | 119 EXPECT_EQ(GetBackgroundTaskExpectedName(extension), task->title()); |
| 119 | 120 |
| 120 // Unload the extension. | 121 // Unload the extension. |
| 121 UnloadExtension(extension->id()); | 122 UnloadExtension(extension->id()); |
| 122 EXPECT_EQ(1U, task_manager.tasks().size()); | 123 EXPECT_EQ(1U, task_manager.tasks().size()); |
| 123 EXPECT_EQ(1U, tags_manager()->tracked_tags().size()); | 124 EXPECT_EQ(1U, tags_manager()->tracked_tags().size()); |
| 124 } | 125 } |
| 125 | 126 |
| 126 } // namespace task_management | 127 } // namespace task_management |
| OLD | NEW |