summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authormmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-08 16:08:24 +0000
committermmoss@chromium.org <mmoss@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-08 16:08:24 +0000
commita3303b6274be0615823efc3ade57ace0c75a2cf5 (patch)
treef87329146debec32269e4e5db3d98367dbde96cc /printing
parente2173eeae269887a6c259bb17311ae3d3ef9fe79 (diff)
downloadchromium_src-a3303b6274be0615823efc3ade57ace0c75a2cf5.zip
chromium_src-a3303b6274be0615823efc3ade57ace0c75a2cf5.tar.gz
chromium_src-a3303b6274be0615823efc3ade57ace0c75a2cf5.tar.bz2
Use EXPECT_DOUBLE_EQ for floating point tests.
This fixes multiple test failures on the new Lucid bots, like: MultiAnimationTest.Basic: ui/base/animation/multi_animation_unittest.cc:32: Failure Value of: animation.GetCurrentValue() Actual: 0.36 Expected: Tween::CalculateValue(Tween::EASE_OUT, .2) Which is: 0.36 BUG= TEST=Fix printing_unittests, app_unittests, and gfx_unittests on new Lucid official builder. Review URL: http://codereview.chromium.org/6811036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80940 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/units_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/printing/units_unittest.cc b/printing/units_unittest.cc
index 82f9acb..4b7f4bf 100644
--- a/printing/units_unittest.cc
+++ b/printing/units_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -39,7 +39,7 @@ TEST(UnitsTest, Convertions) {
EXPECT_EQ(100, ConvertUnitDouble(100, 100, 100));
EXPECT_EQ(-100, ConvertUnitDouble(-100, 100, 100));
EXPECT_EQ(0, ConvertUnitDouble(0, 100, 100));
- EXPECT_EQ(0.000002, ConvertUnitDouble(2, 1000, 0.001));
+ EXPECT_DOUBLE_EQ(0.000002, ConvertUnitDouble(2, 1000, 0.001));
EXPECT_EQ(2000000, ConvertUnitDouble(2, 0.001, 1000));
EXPECT_EQ(kHundrethsMMPerInch, ConvertMilliInchToHundredThousanthMeter(1000));