summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-15 18:00:42 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-15 18:00:42 +0000
commit579c658caf4a112dcdc781163a90b42e4805565c (patch)
tree9bdb0ac36a2fa8766e6fdbd187d27e26a32453a2 /chrome/browser/ui/cocoa
parent323c84ba594bc8bb927ebfc522f3a8da94ed4265 (diff)
downloadchromium_src-579c658caf4a112dcdc781163a90b42e4805565c.zip
chromium_src-579c658caf4a112dcdc781163a90b42e4805565c.tar.gz
chromium_src-579c658caf4a112dcdc781163a90b42e4805565c.tar.bz2
fix up TEST_VIEW macro
BUG=53621 TEST=Build Mac Review URL: http://codereview.chromium.org/6831015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa')
-rw-r--r--chrome/browser/ui/cocoa/cocoa_test_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/cocoa/cocoa_test_helper.h b/chrome/browser/ui/cocoa/cocoa_test_helper.h
index 085aa97..6891489 100644
--- a/chrome/browser/ui/cocoa/cocoa_test_helper.h
+++ b/chrome/browser/ui/cocoa/cocoa_test_helper.h
@@ -109,13 +109,13 @@ class CocoaTest : public PlatformTest {
// from a window. All tests that work with NSView subclasses and/or
// NSViewController subclasses should use it.
#define TEST_VIEW(test_fixture, test_view) \
- TEST_F(test_fixture, AddRemove##test_fixture) { \
+ TEST_F(test_fixture, test_fixture##_TestViewMacroAddRemove) { \
scoped_nsobject<NSView> view([test_view retain]); \
EXPECT_EQ([test_window() contentView], [view superview]); \
[view removeFromSuperview]; \
EXPECT_FALSE([view superview]); \
} \
- TEST_F(test_fixture, Display##test_fixture) { \
+ TEST_F(test_fixture, test_fixture##_TestViewMacroDisplay) { \
[test_view display]; \
}