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.chromium_linker_test_apk;
7 import android.app.Application;
9 import org.chromium.base.PathUtils;
10 import org.chromium.base.ResourceExtractor;
13 * Application for testing the Chromium Linker
15 public class ChromiumLinkerTestApplication extends Application {
18 * icudtl.dat provides ICU (i18n library) with all the data for its
19 * operation. We use to link it statically to our binary, but not any more
20 * so that we have to install it along with other mandatory pak files.
21 * See src/third_party/icu/README.chromium.
23 * V8's initial snapshot used to be statically linked to the binary, but
24 * now it's loaded from external files. Therefore we need to install such
25 * snapshots (natives_blob.bin and snapshot.bin) along with pak files.
27 private static final String[] MANDATORY_PAK_FILES = new String[] {
33 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker_test";
36 public void onCreate() {
38 initializeApplicationParameters();
41 public static void initializeApplicationParameters() {
42 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
43 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);