1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.chrome.test.util;
6 
7 /**
8  * Restrictions that are usable with the @Restriction enum but in the chrome/ layer.
9  * e.g. @Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE})
10  */
11 public final class ChromeRestriction {
12     /** Specifies the test is only valid on a device that has up to date play services. */
13     public static final String RESTRICTION_TYPE_GOOGLE_PLAY_SERVICES = "Google_Play_Services";
14     /** Specifies the test is only valid on official build. */
15     public static final String RESTRICTION_TYPE_OFFICIAL_BUILD = "Official_Build";
16     /** Specifies the test is only valid on a Daydream-ready device */
17     public static final String RESTRICTION_TYPE_DEVICE_DAYDREAM = "Daydream_Ready";
18     /** Specifies the test is only valid on a non-Daydream-ready device */
19     public static final String RESTRICTION_TYPE_DEVICE_NON_DAYDREAM = "Non_Daydream_Ready";
20     /** Specifies the test is only valid if the current VR viewer is Daydream View */
21     public static final String RESTRICTION_TYPE_VIEWER_DAYDREAM = "Daydream_View";
22     /** Specifies the test is only valid if the current VR viewer is not Daydream View */
23     public static final String RESTRICTION_TYPE_VIEWER_NON_DAYDREAM = "Non_Daydream_View";
24     /** Specifies the test is only valid if run on a standalone VR device */
25     public static final String RESTRICTION_TYPE_STANDALONE = "Standalone_VR";
26     /** Specifies the test is valid if run on either a standalone VR device or a smartphone with
27      *  Daydream View paired. */
28     public static final String RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE =
29             "Daydream_View_Or_Standalone_VR";
30     /** Specifies the test is valid only if run via SVR (smartphone VR), i.e. not on a standalone
31      *  VR device. */
32     public static final String RESTRICTION_TYPE_SVR = "Smartphone_VR";
33     /** Specifies the test is only valid if the VR DON flow is enabled */
34     public static final String RESTRICTION_TYPE_VR_DON_ENABLED = "VR_DON_Enabled";
35 }
36