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

Unified Diff: components/arc/arc_util_unittest.cc

Issue 2642783003: Move more utility functions to arc_util. (Closed)
Patch Set: address review 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
Index: components/arc/arc_util_unittest.cc
diff --git a/components/arc/arc_util_unittest.cc b/components/arc/arc_util_unittest.cc
index 5fd4cdd86de3a80be8cebded22f8a490b3c7a298..6534ae3bf1ff024d615c46328f169876af551164 100644
--- a/components/arc/arc_util_unittest.cc
+++ b/components/arc/arc_util_unittest.cc
@@ -80,4 +80,17 @@ 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 arc

Powered by Google App Engine
This is Rietveld 408576698