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

Unified Diff: chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java

Issue 1582513003: Add a testing restriction for whether Google Play Services is up-to-date. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java
diff --git a/base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java
similarity index 54%
copy from base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java
copy to chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java
index 4b561a6f6fd966d39bff9b87ab269242c4e9947b..b6da4a8ad2a9f41c7b946241eac7370ac804d579 100644
--- a/base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java
+++ b/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java
@@ -1,8 +1,8 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.base.test.util;
+package org.chromium.chrome.test.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
@@ -17,21 +17,16 @@ import java.lang.annotation.Target;
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
-public @interface Restriction {
+public @interface ChromeRestriction {
jbudorick 2016/01/25 15:21:37 Why is this its own annotation instead of just bei
Yaron 2016/01/25 21:39:55 Hmm. I guess I got confused and thought the annota
+
/** Specifies the test is only valid on phone form factors. */
- public static final String RESTRICTION_TYPE_PHONE = "Phone";
+ String RESTRICTION_TYPE_PHONE = "Phone";
/** Specifies the test is only valid on tablet form factors. */
- public static final String RESTRICTION_TYPE_TABLET = "Tablet";
-
- /** Specifies the test is only valid on low end devices that have less memory. */
- public static final String RESTRICTION_TYPE_LOW_END_DEVICE = "Low_End_Device";
-
- /** Specifies the test is only valid on non-low end devices. */
- public static final String RESTRICTION_TYPE_NON_LOW_END_DEVICE = "Non_Low_End_Device";
+ String RESTRICTION_TYPE_TABLET = "Tablet";
- /** Specifies the test is only valid on a device that can reach the internet. */
- public static final String RESTRICTION_TYPE_INTERNET = "Internet";
+ /** Specifies the test is only valid on a device that has up to date play services. */
+ String RESTRICTION_TYPE_GOOGLE_PLAY_SERVICES = "Google_Play_Services";
/**
* @return A list of restrictions.

Powered by Google App Engine
This is Rietveld 408576698