Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2529)

Unified Diff: chrome/browser/task_manager/task_manager_unittest.cc

Issue 7828007: Add Profile data to the Task Manager on OS Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_manager/task_manager_unittest.cc
===================================================================
--- chrome/browser/task_manager/task_manager_unittest.cc (revision 99168)
+++ chrome/browser/task_manager/task_manager_unittest.cc (working copy)
@@ -33,6 +33,9 @@
virtual string16 GetTitle() const OVERRIDE {
return ASCIIToUTF16("test title");
}
+ virtual string16 GetProfileName() const OVERRIDE {
+ return ASCIIToUTF16("test profile");
+ }
virtual SkBitmap GetIcon() const { return SkBitmap(); }
virtual base::ProcessHandle GetProcess() const {
return base::GetCurrentProcessHandle();
@@ -71,6 +74,7 @@
ASSERT_EQ(1, model->ResourceCount());
EXPECT_TRUE(model->IsResourceFirstInGroup(0));
EXPECT_EQ(ASCIIToUTF16("test title"), model->GetResourceTitle(0));
+ EXPECT_EQ(ASCIIToUTF16("test profile"), model->GetResourceProfileName(0));
EXPECT_EQ(l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT),
model->GetResourceNetworkUsage(0));
EXPECT_EQ(ASCIIToUTF16(kZeroCPUUsage), model->GetResourceCPUUsage(0));
@@ -80,6 +84,7 @@
EXPECT_TRUE(model->IsResourceFirstInGroup(0));
EXPECT_FALSE(model->IsResourceFirstInGroup(1));
EXPECT_EQ(ASCIIToUTF16("test title"), model->GetResourceTitle(1));
+ EXPECT_EQ(ASCIIToUTF16("test profile"), model->GetResourceProfileName(1));
EXPECT_EQ(l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT).c_str(),
model->GetResourceNetworkUsage(1));
EXPECT_EQ(ASCIIToUTF16(kZeroCPUUsage), model->GetResourceCPUUsage(1));
@@ -89,6 +94,7 @@
ASSERT_EQ(1, model->ResourceCount());
EXPECT_TRUE(model->IsResourceFirstInGroup(0));
EXPECT_EQ(ASCIIToUTF16("test title"), model->GetResourceTitle(0));
+ EXPECT_EQ(ASCIIToUTF16("test profile"), model->GetResourceProfileName(0));
EXPECT_EQ(l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT),
model->GetResourceNetworkUsage(0));
EXPECT_EQ(ASCIIToUTF16(kZeroCPUUsage), model->GetResourceCPUUsage(0));
« no previous file with comments | « chrome/browser/task_manager/task_manager_resource_providers.cc ('k') | chrome/browser/ui/cocoa/task_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698