| Index: tools/android/customtabs_benchmark/scripts/launch.sh
|
| diff --git a/tools/android/customtabs_benchmark/scripts/launch.sh b/tools/android/customtabs_benchmark/scripts/launch.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..35d446043e777401af72c1cd0a709f582528f114
|
| --- /dev/null
|
| +++ b/tools/android/customtabs_benchmark/scripts/launch.sh
|
| @@ -0,0 +1,25 @@
|
| +#!/bin/sh
|
| +#
|
| +# Copyright 2017 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.
|
| +
|
| +set -x
|
| +
|
| +PACKAGE_NAME="org.chromium.customtabs.test"
|
| +URL=$1
|
| +USE_WEBVIEW=$2
|
| +WARMUP=$3
|
| +
|
| +adb root
|
| +
|
| +adb shell am force-stop com.google.android.apps.chrome
|
| +adb shell am force-stop $PACKAGE_NAME
|
| +adb shell "echo 3 > /proc/sys/vm/drop_caches"
|
| +
|
| +sleep 3
|
| +
|
| +adb shell am start -n ${PACKAGE_NAME}/.MainActivity \
|
| + --es "url" "$URL" \
|
| + --ez "use_webview" "$USE_WEBVIEW" \
|
| + --ez "warmup" "$WARMUP"
|
|
|