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

Unified Diff: components/devtools_bridge/android/client/javatests/src/org/chromium/components/devtools_bridge/browsertests/TestApplication.java

Issue 802293002: Revert of Stub for web-base client for DevTools bridge and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: components/devtools_bridge/android/client/javatests/src/org/chromium/components/devtools_bridge/browsertests/TestApplication.java
diff --git a/components/devtools_bridge/android/client/javatests/src/org/chromium/components/devtools_bridge/browsertests/TestApplication.java b/components/devtools_bridge/android/client/javatests/src/org/chromium/components/devtools_bridge/browsertests/TestApplication.java
deleted file mode 100644
index ff55795447e7f8975ea5512505a1fdc5b102c6ce..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/android/client/javatests/src/org/chromium/components/devtools_bridge/browsertests/TestApplication.java
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2013 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.components.devtools_bridge.browsertests;
-
-import android.content.Context;
-
-import org.chromium.base.CommandLine;
-import org.chromium.base.PathUtils;
-import org.chromium.base.ResourceExtractor;
-import org.chromium.chrome.browser.ChromiumApplication;
-import org.chromium.chrome.browser.PKCS11AuthenticationManager;
-import org.chromium.net.AndroidPrivateKey;
-
-import java.security.cert.X509Certificate;
-
-/**
- * Host application for DevTools Bridge client code tests.
- */
-public class TestApplication extends ChromiumApplication {
- private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "devtools_bridge";
- private static final String[] MANDATORY_PAKS = {
- "en-US.pak",
- "icudtl.dat",
- "natives_blob.bin",
- "resources.pak",
- "snapshot_blob.bin"
- };
-
- @Override
- public void onCreate() {
- super.onCreate();
- ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAKS);
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
- }
-
- @Override
- public void initCommandLine() {
- if (!CommandLine.isInitialized()) {
- CommandLine.init(null);
- }
- }
-
- @Override
- protected PKCS11AuthenticationManager getPKCS11AuthenticationManager() {
- return new PKCS11AuthenticationManager() {
- @Override
- public boolean isPKCS11AuthEnabled() {
- return false;
- }
-
- @Override
- public String getClientCertificateAlias(String hostName, int port) {
- return null;
- }
-
- @Override
- public void initialize(Context context) {
- }
-
- @Override
- public X509Certificate[] getCertificateChain(String alias) {
- return null;
- }
-
- @Override
- public AndroidPrivateKey getPrivateKey(String alias) {
- return null;
- }
- };
- }
-
- @Override
- protected boolean areParentalControlsEnabled() {
- return false;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698