summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 20:30:07 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-14 20:30:07 +0000
commit662430bcbff824b43a5b7063706ca2e17497732b (patch)
treef1f0e1c04bc01af5f6e909e3824ffee0eaaff758 /testing
parentd1a4c7973734f2c2f7fb7e3fa2dd2e47bc3cfcaf (diff)
downloadchromium_src-662430bcbff824b43a5b7063706ca2e17497732b.zip
chromium_src-662430bcbff824b43a5b7063706ca2e17497732b.tar.gz
chromium_src-662430bcbff824b43a5b7063706ca2e17497732b.tar.bz2
mac: Fix a -Wobjc-redundant-literal-use warning
BUG=none TEST=none TBR=rsesek Review URL: http://codereview.chromium.org/9706027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'testing')
-rw-r--r--testing/gtest_mac_unittest.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/gtest_mac_unittest.mm b/testing/gtest_mac_unittest.mm
index 1376ed1..da3d555 100644
--- a/testing/gtest_mac_unittest.mm
+++ b/testing/gtest_mac_unittest.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -20,7 +20,7 @@ TEST(GTestMac, ExpectNSEQ) {
EXPECT_NSEQ(@"a", @"a");
NSString* s1 = [NSString stringWithUTF8String:"a"];
- NSString* s2 = [NSString stringWithString:@"a"];
+ NSString* s2 = @"a";
EXPECT_NE(s1, s2);
EXPECT_NSEQ(s1, s2);
}