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

Unified Diff: components/arc/arc_util_unittest.cc

Issue 2642783003: Move more utility functions to arc_util. (Closed)
Patch Set: address comments Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/arc/arc_util.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_util_unittest.cc
diff --git a/components/arc/arc_util_unittest.cc b/components/arc/arc_util_unittest.cc
index b3fff189f38516d1a8a9152bb41b98afb7b6eceb..ff3f6113ea3934aec56167e133f45aba62c499d0 100644
--- a/components/arc/arc_util_unittest.cc
+++ b/components/arc/arc_util_unittest.cc
@@ -80,5 +80,18 @@ TEST_F(ArcUtilTest, IsArcAvailable_OfficialSupport) {
EXPECT_TRUE(IsArcAvailable());
}
+// TODO(hidehiko): Add test for IsArcKioskMode().
+// It depends on UserManager, but a utility to inject fake instance is
+// available only in chrome/. To use it in components/, refactoring is needed.
+
+TEST_F(ArcUtilTest, IsArcOptInVerificationDisabled) {
+ auto* command_line = base::CommandLine::ForCurrentProcess();
+ command_line->InitFromArgv({""});
+ EXPECT_FALSE(IsArcOptInVerificationDisabled());
+
+ command_line->InitFromArgv({"", "--disable-arc-opt-in-verification"});
+ EXPECT_TRUE(IsArcOptInVerificationDisabled());
+}
+
} // namespace
} // namespace arc
« no previous file with comments | « components/arc/arc_util.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698