diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 06:58:27 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 06:58:27 +0000 |
commit | 1222ccea51b22334002559b2f728d6b41a191a8d (patch) | |
tree | dbe92756627fc9a076fe48355793d5d36119c952 /chrome/browser/task_manager.h | |
parent | f4261f0127d445bd60176228bcddbda8a52dcbd6 (diff) | |
download | chromium_src-1222ccea51b22334002559b2f728d6b41a191a8d.zip chromium_src-1222ccea51b22334002559b2f728d6b41a191a8d.tar.gz chromium_src-1222ccea51b22334002559b2f728d6b41a191a8d.tar.bz2 |
Add basic unit tests for TaskManager.
For now the tests are Windows-only, because the TaskManager isn't ported.
But they should make porting effort a bit safer.
TEST=Make sure that tests from unit_tests matching TaskManagerTest.* pass.
http://crbug.com/10844
Review URL: http://codereview.chromium.org/92071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.h')
-rw-r--r-- | chrome/browser/task_manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h index 717dcf2..866246c 100644 --- a/chrome/browser/task_manager.h +++ b/chrome/browser/task_manager.h @@ -18,6 +18,7 @@ #include "chrome/views/controls/table/group_table_view.h" #include "chrome/views/window/dialog_delegate.h" #include "net/url_request/url_request_job_tracker.h" +#include "testing/gtest/include/gtest/gtest_prod.h" class MessageLoop; class ModelEntry; @@ -136,6 +137,9 @@ class TaskManager : public views::DialogDelegate { virtual views::View* GetContentsView(); private: + FRIEND_TEST(TaskManagerTest, Basic); + FRIEND_TEST(TaskManagerTest, Resources); + // Obtain an instance via GetInstance(). TaskManager(); friend DefaultSingletonTraits<TaskManager>; |