Add a stub __cxa_demangle to disable LLVM's demangler.
[chromium-blink-merge.git] / content / common / page_zoom_unittest.cc
blob67dd5d567da29ffe5f5fe0413d2591cd1b73d0fd
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/public/common/page_zoom.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 TEST(PageZoomTest, ZoomValuesEqual) {
10 // Test two identical values.
11 EXPECT_TRUE(content::ZoomValuesEqual(1.5, 1.5));
13 // Test two values that are close enough to be considered equal.
14 EXPECT_TRUE(content::ZoomValuesEqual(1.5, 1.49999999));
16 // Test two values that are close, but should not be considered equal.
17 EXPECT_FALSE(content::ZoomValuesEqual(1.5, 1.4));