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

Unified Diff: chrome/browser/chromeos/arc/settings_bridge_unittest.cc

Issue 1843563003: Move arc_intent_helper_bridge.h from c/b/chromeos/ to components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address a comment Created 4 years, 9 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 | « chrome/browser/chromeos/arc/settings_bridge.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/chromeos/arc/settings_bridge.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698