| 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 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/test/base/testing_browser_process.h" | 26 #include "chrome/test/base/testing_browser_process.h" |
| 27 #include "net/base/mock_host_resolver.h" | 27 #include "net/base/mock_host_resolver.h" |
| 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 "net/android/net_jni_registrar.h" | 37 #include "net/android/net_jni_registrar.h" |
| 37 #endif | 38 #endif |
| 38 | 39 |
| 39 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
| 40 #include "base/mac/bundle_locations.h" | 41 #include "base/mac/bundle_locations.h" |
| 41 #include "base/mac/scoped_nsautorelease_pool.h" | 42 #include "base/mac/scoped_nsautorelease_pool.h" |
| 42 #if !defined(OS_IOS) | 43 #if !defined(OS_IOS) |
| 43 #include "base/mac/mac_util.h" | 44 #include "base/mac/mac_util.h" |
| 44 #include "chrome/browser/chrome_browser_application_mac.h" | 45 #include "chrome/browser/chrome_browser_application_mac.h" |
| 45 #endif // !defined(OS_IOS) | 46 #endif // !defined(OS_IOS) |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 #if defined(OS_MACOSX) | 188 #if defined(OS_MACOSX) |
| 188 base::mac::ScopedNSAutoreleasePool autorelease_pool; | 189 base::mac::ScopedNSAutoreleasePool autorelease_pool; |
| 189 #if !defined(OS_IOS) | 190 #if !defined(OS_IOS) |
| 190 chrome_browser_application_mac::RegisterBrowserCrApp(); | 191 chrome_browser_application_mac::RegisterBrowserCrApp(); |
| 191 #endif // !defined(OS_IOS) | 192 #endif // !defined(OS_IOS) |
| 192 #endif | 193 #endif |
| 193 | 194 |
| 194 #if defined(OS_ANDROID) | 195 #if defined(OS_ANDROID) |
| 195 // Register JNI bindings for android. | 196 // Register JNI bindings for android. |
| 196 net::android::RegisterJni(base::android::AttachCurrentThread()); | 197 net::android::RegisterJni(base::android::AttachCurrentThread()); |
| 198 chrome::android::RegisterJni(base::android::AttachCurrentThread()); |
| 197 #endif | 199 #endif |
| 198 | 200 |
| 199 chrome::RegisterPathProvider(); | 201 chrome::RegisterPathProvider(); |
| 200 if (!browser_dir_.empty()) { | 202 if (!browser_dir_.empty()) { |
| 201 PathService::Override(base::DIR_EXE, browser_dir_); | 203 PathService::Override(base::DIR_EXE, browser_dir_); |
| 202 PathService::Override(base::DIR_MODULE, browser_dir_); | 204 PathService::Override(base::DIR_MODULE, browser_dir_); |
| 203 } | 205 } |
| 204 | 206 |
| 205 // Disable external libraries load if we are under python process in | 207 // Disable external libraries load if we are under python process in |
| 206 // ChromeOS. That means we are autotest and, if ASAN is used, | 208 // ChromeOS. That means we are autotest and, if ASAN is used, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 #if defined(OS_MACOSX) && !defined(OS_IOS) | 253 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 252 base::mac::SetOverrideFrameworkBundle(NULL); | 254 base::mac::SetOverrideFrameworkBundle(NULL); |
| 253 #endif | 255 #endif |
| 254 | 256 |
| 255 base::StatsTable::set_current(NULL); | 257 base::StatsTable::set_current(NULL); |
| 256 stats_table_.reset(); | 258 stats_table_.reset(); |
| 257 RemoveSharedMemoryFile(stats_filename_); | 259 RemoveSharedMemoryFile(stats_filename_); |
| 258 | 260 |
| 259 base::TestSuite::Shutdown(); | 261 base::TestSuite::Shutdown(); |
| 260 } | 262 } |
| OLD | NEW |