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

Unified Diff: components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/tests/DebugActivity.java

Issue 597063002: Revert of DevTools socket tunnel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glue
Patch Set: Created 6 years, 3 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: components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/tests/DebugActivity.java
diff --git a/components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/tests/DebugActivity.java b/components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/tests/DebugActivity.java
deleted file mode 100644
index 4e769ec182bcd00a4b684c72c98424b0084f0acb..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/android/javatests/src/org/chromium/components/devtools_bridge/tests/DebugActivity.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2014 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.tests;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.Button;
-import android.widget.LinearLayout;
-import android.widget.LinearLayout.LayoutParams;
-import android.widget.TextView;
-
-/**
- * Activity for testing devtools bridge.
- */
-public class DebugActivity extends Activity {
- private LinearLayout mLayout;
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- mLayout = new LinearLayout(this);
- mLayout.setOrientation(LinearLayout.VERTICAL);
-
- String intro = "To test LocalTunnelBridge manually: \n" +
- "1. Enable USB debugging.\n" +
- "2. Run ChromeShell along with this app.\n" +
- "3. Start the LocalTunnelBridge.\n" +
- "4. Connect the device to a desktop via USB.\n" +
- "5. Open chrome://inspect#devices on desktop Chrome.\n" +
- "6. Observe 2 identical Chrome Shells on the device.";
-
- TextView textView = new TextView(this);
- textView.setText(intro);
- mLayout.addView(textView);
-
- Button startButton = new Button(this);
- startButton.setText("Start LocalTunnelBridge");
- startButton.setOnClickListener(new SendActionOnClickListener(DebugService.START_ACTION));
- mLayout.addView(startButton);
-
- Button stopButton = new Button(this);
- stopButton.setText("Stop");
- stopButton.setOnClickListener(new SendActionOnClickListener(DebugService.STOP_ACTION));
- mLayout.addView(stopButton);
-
- LayoutParams layoutParam = new LayoutParams(LayoutParams.MATCH_PARENT,
- LayoutParams.MATCH_PARENT);
- setContentView(mLayout, layoutParam);
- }
-
- private class SendActionOnClickListener implements View.OnClickListener {
- private final String mAction;
-
- SendActionOnClickListener(String action) {
- mAction = action;
- }
-
- @Override
- public void onClick(View v) {
- Intent intent = new Intent(DebugActivity.this, DebugService.class);
- intent.setAction(mAction);
- startService(intent);
- }
- }
-}
-

Powered by Google App Engine
This is Rietveld 408576698