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

Unified Diff: chrome/browser/cocoa/bubble_view_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/bubble_view_unittest.mm
diff --git a/chrome/browser/cocoa/bubble_view_unittest.mm b/chrome/browser/cocoa/bubble_view_unittest.mm
index d4179afe77aea2dab666431b443e8012dfa3d309..3b3bf77b349ed8c25ffbab6a05135e3bd80817b5 100644
--- a/chrome/browser/cocoa/bubble_view_unittest.mm
+++ b/chrome/browser/cocoa/bubble_view_unittest.mm
@@ -6,6 +6,7 @@
#include "base/scoped_nsobject.h"
#import "chrome/browser/cocoa/bubble_view.h"
#include "chrome/browser/cocoa/cocoa_test_helper.h"
+#import "testing/gtest_mac.h"
class BubbleViewTest : public CocoaTest {
public:
@@ -37,10 +38,10 @@ TEST_F(BubbleViewTest, SetContent) {
[view_ setContent:nil];
EXPECT_TRUE([view_ content] == nil);
[view_ setContent:@""];
- EXPECT_TRUE([[view_ content] isEqualToString:@""]);
+ EXPECT_NSEQ(@"", [view_ content]);
NSString* str = @"This is a really really long string that's just too long";
[view_ setContent:str];
- EXPECT_TRUE([[view_ content] isEqualToString:str]);
+ EXPECT_NSEQ(str, [view_ content]);
}
TEST_F(BubbleViewTest, CornerFlags) {

Powered by Google App Engine
This is Rietveld 408576698