| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/task_manager/task_manager_browsertest_util.h" | 5 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
| 13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/task_manager/resource_provider.h" | 16 #include "chrome/browser/task_manager/resource_provider.h" |
| 17 #include "chrome/browser/task_manager/task_manager.h" | 17 #include "chrome/browser/task_manager/task_manager.h" |
| 18 #include "grit/generated_resources.h" | 18 #include "chrome/grit/generated_resources.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 | 21 |
| 22 namespace task_manager { | 22 namespace task_manager { |
| 23 namespace browsertest_util { | 23 namespace browsertest_util { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 class ResourceChangeObserver : public TaskManagerModelObserver { | 27 class ResourceChangeObserver : public TaskManagerModelObserver { |
| 28 public: | 28 public: |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 base::string16 MatchPrint(const char* title) { | 186 base::string16 MatchPrint(const char* title) { |
| 187 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRINT_PREFIX, | 187 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRINT_PREFIX, |
| 188 base::ASCIIToUTF16(title)); | 188 base::ASCIIToUTF16(title)); |
| 189 } | 189 } |
| 190 | 190 |
| 191 base::string16 MatchAnyPrint() { return MatchPrint("*"); } | 191 base::string16 MatchAnyPrint() { return MatchPrint("*"); } |
| 192 | 192 |
| 193 } // namespace browsertest_util | 193 } // namespace browsertest_util |
| 194 } // namespace task_manager | 194 } // namespace task_manager |
| OLD | NEW |