| Index: chrome/browser/chromeos/arc/settings_bridge_unittest.cc
|
| diff --git a/chrome/browser/chromeos/arc/settings_bridge_unittest.cc b/chrome/browser/chromeos/arc/settings_bridge_unittest.cc
|
| deleted file mode 100644
|
| index a89f77d48e02ebbd913c40dc0f46727612015737..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/chromeos/arc/settings_bridge_unittest.cc
|
| +++ /dev/null
|
| @@ -1,53 +0,0 @@
|
| -// Copyright (c) 2015 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.
|
| -
|
| -#include "chrome/browser/chromeos/arc/settings_bridge.h"
|
| -
|
| -#include "testing/gtest/include/gtest/gtest.h"
|
| -
|
| -namespace arc {
|
| -
|
| -namespace fontsizes {
|
| -
|
| -TEST(SettingsBridgeTest, FontSizeConvertChromeToAndroid) {
|
| - // Does not return a value smaller than Small.
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleSmall,
|
| - ConvertFontSizeChromeToAndroid(0, 0, 0));
|
| -
|
| - // Does not return a value larger than Huge
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleHuge,
|
| - ConvertFontSizeChromeToAndroid(100, 100, 100));
|
| -
|
| - // The max of any Chrome values is what determines the Android value.
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleLarge,
|
| - ConvertFontSizeChromeToAndroid(20, 0, 0));
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleLarge,
|
| - ConvertFontSizeChromeToAndroid(0, 20, 0));
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleLarge,
|
| - ConvertFontSizeChromeToAndroid(0, 0, 20));
|
| -
|
| - // default fixed font size is adjusted up three pixels
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleLarge,
|
| - ConvertFontSizeChromeToAndroid(0, 17, 0));
|
| -
|
| - // Small converts properly.
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleSmall,
|
| - ConvertFontSizeChromeToAndroid(12, 0, 0));
|
| -
|
| - // Normal converts properly.
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleNormal,
|
| - ConvertFontSizeChromeToAndroid(16, 0, 0));
|
| -
|
| - // Large converts properly.
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleLarge,
|
| - ConvertFontSizeChromeToAndroid(20, 0, 0));
|
| -
|
| - // Very large converts properly.
|
| - EXPECT_DOUBLE_EQ(kAndroidFontScaleHuge,
|
| - ConvertFontSizeChromeToAndroid(24, 0, 0));
|
| -}
|
| -
|
| -} // namespace fontsizes
|
| -
|
| -} // namespace arc
|
|
|