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

Unified Diff: courgette/difference_estimator_unittest.cc

Issue 149597: Code changes to get the code to compile under GCC.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « courgette/courgette_tool.cc ('k') | courgette/encode_decode_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/difference_estimator_unittest.cc
===================================================================
--- courgette/difference_estimator_unittest.cc (revision 21002)
+++ courgette/difference_estimator_unittest.cc (working copy)
@@ -21,7 +21,7 @@
difference_estimator.MakeBase(Region(kString1, sizeof(kString1)));
DifferenceEstimator::Subject* subject =
difference_estimator.MakeSubject(Region(kString2, sizeof(kString2)));
- EXPECT_EQ(0, difference_estimator.Measure(base, subject));
+ EXPECT_EQ(0U, difference_estimator.Measure(base, subject));
}
TEST(DifferenceEstimatorTest, TestDifferent) {
@@ -32,7 +32,7 @@
difference_estimator.MakeBase(Region(kString1, sizeof(kString1)));
DifferenceEstimator::Subject* subject =
difference_estimator.MakeSubject(Region(kString2, sizeof(kString2)));
- EXPECT_EQ(10, difference_estimator.Measure(base, subject));
+ EXPECT_EQ(10U, difference_estimator.Measure(base, subject));
}
TEST(DifferenceEstimatorTest, TestDifferentSuperstring) {
@@ -43,7 +43,7 @@
difference_estimator.MakeBase(Region(kString1, sizeof(kString1)-1));
DifferenceEstimator::Subject* subject =
difference_estimator.MakeSubject(Region(kString2, sizeof(kString2)-1));
- EXPECT_EQ(1, difference_estimator.Measure(base, subject));
+ EXPECT_EQ(1U, difference_estimator.Measure(base, subject));
}
TEST(DifferenceEstimatorTest, TestDifferentSubstring) {
@@ -54,5 +54,5 @@
difference_estimator.MakeBase(Region(kString1, sizeof(kString1)-1));
DifferenceEstimator::Subject* subject =
difference_estimator.MakeSubject(Region(kString2, sizeof(kString2)-1));
- EXPECT_EQ(1, difference_estimator.Measure(base, subject));
+ EXPECT_EQ(1U, difference_estimator.Measure(base, subject));
}
Property changes on: courgette/difference_estimator_unittest.cc
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « courgette/courgette_tool.cc ('k') | courgette/encode_decode_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698