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

Unified Diff: extensions/common/features/simple_feature_unittest.cc

Issue 2601803003: Introduce kiosk.autolaunched feature session type (Closed)
Patch Set: . 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: extensions/common/features/simple_feature_unittest.cc
diff --git a/extensions/common/features/simple_feature_unittest.cc b/extensions/common/features/simple_feature_unittest.cc
index 9117e7c259ae9da8d3892a47fe49032013d1f3e3..a570248922170a3db7529953129d3533e75aa1ae 100644
--- a/extensions/common/features/simple_feature_unittest.cc
+++ b/extensions/common/features/simple_feature_unittest.cc
@@ -451,6 +451,10 @@ TEST_F(SimpleFeatureTest, SessionType) {
Feature::IS_AVAILABLE,
FeatureSessionType::KIOSK,
{}},
+ {"session agnostic feature in auto-launched kiosk session",
+ Feature::IS_AVAILABLE,
+ FeatureSessionType::AUTOLAUNCHED_KIOSK,
+ {}},
{"session agnostic feature in regular session",
Feature::IS_AVAILABLE,
FeatureSessionType::REGULAR,
@@ -470,7 +474,19 @@ TEST_F(SimpleFeatureTest, SessionType) {
{"feature with multiple session types in initial session",
Feature::INVALID_SESSION_TYPE,
FeatureSessionType::INITIAL,
- {FeatureSessionType::REGULAR, FeatureSessionType::KIOSK}}};
+ {FeatureSessionType::REGULAR, FeatureSessionType::KIOSK}},
+ {"feature with auto-launched kiosk session type in regular session",
+ Feature::INVALID_SESSION_TYPE,
+ FeatureSessionType::AUTOLAUNCHED_KIOSK,
+ {FeatureSessionType::REGULAR}},
+ {"feature with auto-launched kiosk session type in auto-launched kiosk",
+ Feature::IS_AVAILABLE,
+ FeatureSessionType::AUTOLAUNCHED_KIOSK,
+ {FeatureSessionType::AUTOLAUNCHED_KIOSK}},
+ {"feature with kiosk session type in auto-launched kiosk session",
+ Feature::IS_AVAILABLE,
+ FeatureSessionType::AUTOLAUNCHED_KIOSK,
+ {FeatureSessionType::KIOSK}}};
for (size_t i = 0; i < arraysize(kTestData); ++i) {
std::unique_ptr<base::AutoReset<FeatureSessionType>> current_session(
« no previous file with comments | « extensions/common/features/simple_feature.cc ('k') | extensions/common/permissions/usb_device_permission_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698