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.chrome.testshell; | 5 package org.chromium.chrome.testshell; |
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 /** |
14 * A basic test shell {@link Application}. Handles setting up the native librar
y and | 14 * A basic test shell {@link Application}. Handles setting up the native librar
y and |
15 * loading the right resources. | 15 * loading the right resources. |
16 */ | 16 */ |
17 public class ChromiumTestShellApplication extends Application { | 17 public class ChromiumTestShellApplication extends Application { |
18 private static final String TAG = ChromiumTestShellApplication.class.getCano
nicalName(); | 18 private static final String TAG = ChromiumTestShellApplication.class.getCano
nicalName(); |
19 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromiumtestshe
ll"; | 19 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromiumtestshe
ll"; |
20 private static final String[] CHROME_MANDATORY_PAKS = { | 20 private static final String[] CHROME_MANDATORY_PAKS = { |
21 "chrome.pak", | 21 "chrome.pak", |
22 "en-US.pak", | 22 "en-US.pak", |
23 "resources.pak", | 23 "resources.pak", |
24 "chrome_100_percent.pak", | 24 "chrome_100_percent.pak", |
25 "devtools_resources.pak", | |
26 }; | 25 }; |
27 | 26 |
28 @Override | 27 @Override |
29 public void onCreate() { | 28 public void onCreate() { |
30 super.onCreate(); | 29 super.onCreate(); |
31 | 30 |
32 ResourceExtractor.setMandatoryPaksToExtract(CHROME_MANDATORY_PAKS); | 31 ResourceExtractor.setMandatoryPaksToExtract(CHROME_MANDATORY_PAKS); |
33 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); | 32 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); |
34 } | 33 } |
35 } | 34 } |
OLD | NEW |