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

Side by Side Diff: chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappDataStorageTest.java

Issue 2815103004: Android: convert kEnumName to ENUM_NAME in java_cpp_enum.py. (Closed)
Patch Set: Address agrieve@ comments Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.webapps; 5 package org.chromium.chrome.browser.webapps;
6 6
7 import static org.junit.Assert.assertEquals; 7 import static org.junit.Assert.assertEquals;
8 import static org.junit.Assert.assertFalse; 8 import static org.junit.Assert.assertFalse;
9 import static org.junit.Assert.assertTrue; 9 import static org.junit.Assert.assertTrue;
10 10
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 @Test 232 @Test
233 @Feature({"Webapp"}) 233 @Feature({"Webapp"})
234 public void testIntentUpdate() throws Exception { 234 public void testIntentUpdate() throws Exception {
235 final String id = "id"; 235 final String id = "id";
236 final String action = "action"; 236 final String action = "action";
237 final String url = "url"; 237 final String url = "url";
238 final String scope = "scope"; 238 final String scope = "scope";
239 final String name = "name"; 239 final String name = "name";
240 final String shortName = "shortName"; 240 final String shortName = "shortName";
241 final Bitmap icon = createBitmap(); 241 final Bitmap icon = createBitmap();
242 final int displayMode = WebDisplayMode.kStandalone; 242 final int displayMode = WebDisplayMode.STANDALONE;
243 final int orientation = 1; 243 final int orientation = 1;
244 final long themeColor = 2; 244 final long themeColor = 2;
245 final long backgroundColor = 3; 245 final long backgroundColor = 3;
246 final boolean isIconGenerated = false; 246 final boolean isIconGenerated = false;
247 AsyncTask<Void, Void, Intent> shortcutIntentTask = new AsyncTask<Void, V oid, Intent>() { 247 AsyncTask<Void, Void, Intent> shortcutIntentTask = new AsyncTask<Void, V oid, Intent>() {
248 @Override 248 @Override
249 protected Intent doInBackground(Void... nothing) { 249 protected Intent doInBackground(Void... nothing) {
250 return ShortcutHelper.createWebappShortcutIntent(id, action, url , scope, name, 250 return ShortcutHelper.createWebappShortcutIntent(id, action, url , scope, name,
251 shortName, icon, ShortcutHelper.WEBAPP_SHORTCUT_VERSION, displayMode, 251 shortName, icon, ShortcutHelper.WEBAPP_SHORTCUT_VERSION, displayMode,
252 orientation, themeColor, backgroundColor, isIconGenerate d); 252 orientation, themeColor, backgroundColor, isIconGenerate d);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 if (actual.getPixel(i, j) != 0) return false; 419 if (actual.getPixel(i, j) != 0) return false;
420 } 420 }
421 } 421 }
422 return true; 422 return true;
423 } 423 }
424 424
425 private static Bitmap createBitmap() { 425 private static Bitmap createBitmap() {
426 return Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); 426 return Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888);
427 } 427 }
428 } 428 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698