OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.content_shell; | 5 package org.chromium.content_browsertests_apk; |
6 | 6 |
7 import android.app.Application; | 7 import android.app.Application; |
8 | 8 |
9 import org.chromium.base.PathUtils; | 9 import org.chromium.base.PathUtils; |
10 import org.chromium.content.app.LibraryLoader; | 10 import org.chromium.content.app.LibraryLoader; |
11 import org.chromium.content.browser.ResourceExtractor; | 11 import org.chromium.content.browser.ResourceExtractor; |
12 | 12 |
13 /** | 13 public class ContentBrowserTestsApplication extends Application { |
14 * Entry point for the content shell application. Handles initialization of inf
ormation that needs | |
15 * to be shared across the main activity and the sandbox services created. | |
16 */ | |
17 public class ContentShellApplication extends Application { | |
18 | 14 |
19 private static final String NATIVE_LIBRARY = "content_shell_content_view"; | 15 private static final String NATIVE_LIBRARY = "content_browsertests"; |
20 private static final String[] MANDATORY_PAK_FILES = new String[] {"content_s
hell.pak"}; | 16 private static final String[] MANDATORY_PAK_FILES = new String[] {"content_s
hell.pak"}; |
21 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell"; | 17 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell"; |
22 | 18 |
23 @Override | 19 @Override |
24 public void onCreate() { | 20 public void onCreate() { |
25 super.onCreate(); | 21 super.onCreate(); |
26 initializeApplicationParameters(); | 22 initializeApplicationParameters(); |
27 } | 23 } |
28 | 24 |
29 public static void initializeApplicationParameters() { | 25 public static void initializeApplicationParameters() { |
30 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); | 26 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); |
31 LibraryLoader.setLibraryToLoad(NATIVE_LIBRARY); | 27 LibraryLoader.setLibraryToLoad(NATIVE_LIBRARY); |
32 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); | 28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); |
33 } | 29 } |
34 | 30 |
35 } | 31 } |
OLD | NEW |