Make castv2 performance test work.
[chromium-blink-merge.git] / components / cronet / android / test / src / org / chromium / net / CronetTestApplication.java
blobabd295b8f0b1cbead060c5a507bdc86a65c531da
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.net;
7 import android.app.Application;
8 import android.util.Log;
10 import org.chromium.base.PathUtils;
12 /**
13 * Application for managing the Cronet Test.
15 public class CronetTestApplication extends Application {
16 private static final String TAG = "CronetTestApplication";
18 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "cronet_test";
20 @Override
21 public void onCreate() {
22 super.onCreate();
23 initializeApplicationParameters();
24 TestFilesInstaller.installIfNeeded(getApplicationContext());
27 public static void initializeApplicationParameters() {
28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
29 Log.i(TAG, "CronetTestApplication.initializeApplicationParameters()"
30 + " success.");