Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / cronet / android / test / src / org / chromium / net / CronetTestApplication.java
blob41695475318703c926cf5d8fe274f66b5951b93a
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.content.Context;
9 import android.util.Log;
11 import org.chromium.base.PathUtils;
13 /**
14 * Application for managing the Cronet Test.
16 public class CronetTestApplication extends Application {
17 private static final String TAG = "CronetTestApplication";
19 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "cronet_test";
21 @Override
22 public void onCreate() {
23 super.onCreate();
24 initializeApplicationParameters(this);
27 public static void initializeApplicationParameters(Context context) {
28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context);
29 Log.i(TAG, "CronetTestApplication.initializeApplicationParameters()"
30 + " success.");