summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorcraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 16:27:18 +0000
committercraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 16:27:18 +0000
commit8b8fab971151ba246c0930fa25c68b705f6a6c0b (patch)
tree0c6a51a8823d8fa36636e16ffa5e85a480c8716d /app
parent0d75bad6ecfdb9c7611f1001c5a1e9a0347b2337 (diff)
downloadchromium_src-8b8fab971151ba246c0930fa25c68b705f6a6c0b.zip
chromium_src-8b8fab971151ba246c0930fa25c68b705f6a6c0b.tar.gz
chromium_src-8b8fab971151ba246c0930fa25c68b705f6a6c0b.tar.bz2
Linux: fix a bunch of NULL vs. 0 issues spotted by gcc 4.5.
There are more gcc 4.5 issues to be solved so GYP_DEFINES=='werror=' is still required to build with 4.5 even with these changes. BUG=66652 TEST=compiles with gcc 4.5 and trybots Review URL: http://codereview.chromium.org/6186008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/gtk_dnd_util_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/gtk_dnd_util_unittest.cc b/app/gtk_dnd_util_unittest.cc
index 1de8991..cefc6dd 100644
--- a/app/gtk_dnd_util_unittest.cc
+++ b/app/gtk_dnd_util_unittest.cc
@@ -46,7 +46,7 @@ TEST(GtkDndUtilTest, ExtractNamedURLInvalidURL) {
GURL url;
string16 title;
- EXPECT_EQ(false, gtk_dnd_util::ExtractNamedURL(&data, &url, &title));
+ EXPECT_FALSE(gtk_dnd_util::ExtractNamedURL(&data, &url, &title));
}
TEST(GtkDndUtilTest, ExtractNamedURLInvalidInput) {
@@ -56,13 +56,13 @@ TEST(GtkDndUtilTest, ExtractNamedURLInvalidInput) {
data.data = NULL;
data.length = 0;
- EXPECT_EQ(false, gtk_dnd_util::ExtractNamedURL(&data, &url, &title));
+ EXPECT_FALSE(gtk_dnd_util::ExtractNamedURL(&data, &url, &title));
guchar empty_data[] = "";
data.data = empty_data;
data.length = 0;
- EXPECT_EQ(false, gtk_dnd_util::ExtractNamedURL(&data, &url, &title));
+ EXPECT_FALSE(gtk_dnd_util::ExtractNamedURL(&data, &url, &title));
const std::string kTitle = "title";
Pickle pickle;
@@ -73,5 +73,5 @@ TEST(GtkDndUtilTest, ExtractNamedURLInvalidInput) {
data.data = test_data.get();
data.length = pickle.size();
- EXPECT_EQ(false, gtk_dnd_util::ExtractNamedURL(&data, &url, &title));
+ EXPECT_FALSE(gtk_dnd_util::ExtractNamedURL(&data, &url, &title));
}