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 #include "chrome/test/base/chrome_test_suite.h" | 5 #include "chrome/test/base/chrome_test_suite.h" |
6 | 6 |
7 #if defined(OS_CHROMEOS) | 7 #if defined(OS_CHROMEOS) |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 #endif | 10 #endif |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "net/base/net_errors.h" | 28 #include "net/base/net_errors.h" |
29 #include "net/base/net_util.h" | 29 #include "net/base/net_util.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
32 #include "ui/base/resource/resource_handle.h" | 32 #include "ui/base/resource/resource_handle.h" |
33 | 33 |
34 #if defined(OS_ANDROID) | 34 #if defined(OS_ANDROID) |
35 #include "base/android/jni_android.h" | 35 #include "base/android/jni_android.h" |
36 #include "chrome/browser/android/chrome_jni_registrar.h" | 36 #include "chrome/browser/android/chrome_jni_registrar.h" |
37 #include "net/android/net_jni_registrar.h" | 37 #include "net/android/net_jni_registrar.h" |
| 38 #include "ui/android/ui_jni_registrar.h" |
38 #endif | 39 #endif |
39 | 40 |
40 #if defined(OS_MACOSX) | 41 #if defined(OS_MACOSX) |
41 #include "base/mac/bundle_locations.h" | 42 #include "base/mac/bundle_locations.h" |
42 #include "base/mac/scoped_nsautorelease_pool.h" | 43 #include "base/mac/scoped_nsautorelease_pool.h" |
43 #if !defined(OS_IOS) | 44 #if !defined(OS_IOS) |
44 #include "base/mac/mac_util.h" | 45 #include "base/mac/mac_util.h" |
45 #include "chrome/browser/chrome_browser_application_mac.h" | 46 #include "chrome/browser/chrome_browser_application_mac.h" |
46 #endif // !defined(OS_IOS) | 47 #endif // !defined(OS_IOS) |
47 #endif | 48 #endif |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 #if defined(OS_MACOSX) | 196 #if defined(OS_MACOSX) |
196 base::mac::ScopedNSAutoreleasePool autorelease_pool; | 197 base::mac::ScopedNSAutoreleasePool autorelease_pool; |
197 #if !defined(OS_IOS) | 198 #if !defined(OS_IOS) |
198 chrome_browser_application_mac::RegisterBrowserCrApp(); | 199 chrome_browser_application_mac::RegisterBrowserCrApp(); |
199 #endif // !defined(OS_IOS) | 200 #endif // !defined(OS_IOS) |
200 #endif | 201 #endif |
201 | 202 |
202 #if defined(OS_ANDROID) | 203 #if defined(OS_ANDROID) |
203 // Register JNI bindings for android. | 204 // Register JNI bindings for android. |
204 net::android::RegisterJni(base::android::AttachCurrentThread()); | 205 net::android::RegisterJni(base::android::AttachCurrentThread()); |
| 206 ui::android::RegisterJni(base::android::AttachCurrentThread()); |
205 chrome::android::RegisterJni(base::android::AttachCurrentThread()); | 207 chrome::android::RegisterJni(base::android::AttachCurrentThread()); |
206 #endif | 208 #endif |
207 | 209 |
208 chrome::RegisterPathProvider(); | 210 chrome::RegisterPathProvider(); |
209 if (!browser_dir_.empty()) { | 211 if (!browser_dir_.empty()) { |
210 PathService::Override(base::DIR_EXE, browser_dir_); | 212 PathService::Override(base::DIR_EXE, browser_dir_); |
211 PathService::Override(base::DIR_MODULE, browser_dir_); | 213 PathService::Override(base::DIR_MODULE, browser_dir_); |
212 } | 214 } |
213 | 215 |
214 // Disable external libraries load if we are under python process in | 216 // Disable external libraries load if we are under python process in |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 #if defined(OS_MACOSX) && !defined(OS_IOS) | 266 #if defined(OS_MACOSX) && !defined(OS_IOS) |
265 base::mac::SetOverrideFrameworkBundle(NULL); | 267 base::mac::SetOverrideFrameworkBundle(NULL); |
266 #endif | 268 #endif |
267 | 269 |
268 base::StatsTable::set_current(NULL); | 270 base::StatsTable::set_current(NULL); |
269 stats_table_.reset(); | 271 stats_table_.reset(); |
270 RemoveSharedMemoryFile(stats_filename_); | 272 RemoveSharedMemoryFile(stats_filename_); |
271 | 273 |
272 base::TestSuite::Shutdown(); | 274 base::TestSuite::Shutdown(); |
273 } | 275 } |
OLD | NEW |