Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / shell / android / browsertests_apk / src / org / chromium / content_browsertests_apk / ContentBrowserTestsApplication.java
1 // Copyright 2012 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.
4
5 package org.chromium.content_browsertests_apk;
6
7 import android.app.Application;
8
9 import org.chromium.base.PathUtils;
10 import org.chromium.base.ResourceExtractor;
11
12 /**
13  * A basic content browser tests {@link android.app.Application}.
14  */
15 public class ContentBrowserTestsApplication extends Application {
16
17     private static final String[] MANDATORY_PAK_FILES = new String[] {
18         "content_shell.pak",
19         "icudtl.dat",
20         "natives_blob.bin",
21         "snapshot_blob.bin"
22     };
23     private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell";
24
25     @Override
26     public void onCreate() {
27         super.onCreate();
28         initializeApplicationParameters();
29     }
30
31     public static void initializeApplicationParameters() {
32         ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
33         PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
34     }
35
36 }