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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwTestResourceProvider.java

Issue 12609013: [android_webview] Build test code against the shell APK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix up minsdkversoin Created 7 years, 9 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: android_webview/javatests/src/org/chromium/android_webview/test/AwTestResourceProvider.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwTestResourceProvider.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwTestResourceProvider.java
deleted file mode 100644
index 0f515e5855b4ff84ee35718d8988007dc9836882..0000000000000000000000000000000000000000
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwTestResourceProvider.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2012 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.android_webview.test;
-
-import android.content.Context;
-
-import org.chromium.android_webview.AwResource;
-
-public class AwTestResourceProvider {
- private static boolean sInitialized;
-
- public static void registerResources(Context context) {
- if (sInitialized) {
- return;
- }
-
- AwResource.setResources(context.getResources());
-
- AwResource.RAW_LOAD_ERROR = R.raw.blank_html;
- AwResource.RAW_NO_DOMAIN = R.raw.blank_html;
-
- AwResource.STRING_DEFAULT_TEXT_ENCODING = R.string.test_string;
-
- sInitialized = true;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698