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

Unified Diff: chrome/browser/cocoa/task_manager_mac_unittest.mm

Issue 3095004: [Mac] Use the new {EXPECT,ASSERT}_NS{EQ,NE} macros where possible. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix compile Created 10 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/cocoa/task_manager_mac_unittest.mm
diff --git a/chrome/browser/cocoa/task_manager_mac_unittest.mm b/chrome/browser/cocoa/task_manager_mac_unittest.mm
index 60366c7c23a8ef64b79c2c99cf3c1ba373286a5b..2275e14e34cde8ccea5a35fe717b222fc82a1e5d 100644
--- a/chrome/browser/cocoa/task_manager_mac_unittest.mm
+++ b/chrome/browser/cocoa/task_manager_mac_unittest.mm
@@ -10,6 +10,7 @@
#import "chrome/browser/cocoa/cocoa_test_helper.h"
#include "grit/generated_resources.h"
#include "testing/gtest/include/gtest/gtest.h"
+#import "testing/gtest_mac.h"
#include "testing/platform_test.h"
namespace {
@@ -63,11 +64,11 @@ TEST_F(TaskManagerWindowControllerTest, Sort) {
[NSNumber numberWithInt:IDS_TASK_MANAGER_PAGE_COLUMN]];
NSCell* cell;
cell = [controller tableView:table dataCellForTableColumn:title_column row:0];
- EXPECT_TRUE([@"zzb" isEqualToString:[cell title]]);
+ EXPECT_NSEQ(@"zzb", [cell title]);
cell = [controller tableView:table dataCellForTableColumn:title_column row:1];
- EXPECT_TRUE([@"zza" isEqualToString:[cell title]]);
+ EXPECT_NSEQ(@"zza", [cell title]);
cell = [controller tableView:table dataCellForTableColumn:title_column row:2];
- EXPECT_TRUE([@"zzz" isEqualToString:[cell title]]);
+ EXPECT_NSEQ(@"zzz", [cell title]);
// Releases the controller, which in turn deletes |bridge|.
[controller close];

Powered by Google App Engine
This is Rietveld 408576698