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

Side by Side Diff: chrome/browser/chromeos/arc/arc_settings_bridge_unittest.cc

Issue 1596663002: arc-bridge: Introduce the ArcService class (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased + protected ArcService direct instantiation Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/arc/arc_settings_bridge_impl.h" 5 #include "chrome/browser/chromeos/arc/arc_settings_bridge.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace arc { 9 namespace arc {
10 10
11 namespace fontsizes { 11 namespace fontsizes {
12 12
13 TEST(ArcSettingsBridgeTest, FontSizeConvertChromeToAndroid) { 13 TEST(ArcSettingsBridgeTest, FontSizeConvertChromeToAndroid) {
14 // Does not return a value smaller than Small. 14 // Does not return a value smaller than Small.
15 EXPECT_DOUBLE_EQ(kAndroidFontScaleSmall, 15 EXPECT_DOUBLE_EQ(kAndroidFontScaleSmall,
(...skipping 28 matching lines...) Expand all
44 ConvertFontSizeChromeToAndroid(20, 0, 0)); 44 ConvertFontSizeChromeToAndroid(20, 0, 0));
45 45
46 // Very large converts properly. 46 // Very large converts properly.
47 EXPECT_DOUBLE_EQ(kAndroidFontScaleHuge, 47 EXPECT_DOUBLE_EQ(kAndroidFontScaleHuge,
48 ConvertFontSizeChromeToAndroid(24, 0, 0)); 48 ConvertFontSizeChromeToAndroid(24, 0, 0));
49 } 49 }
50 50
51 } // namespace fontsizes 51 } // namespace fontsizes
52 52
53 } // namespace arc 53 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_settings_bridge_impl.cc ('k') | chrome/browser/chromeos/chrome_browser_main_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698