Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: ui/base/test/run_all_unittests.cc

Issue 853033002: More delete + gfx_unittests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix android trybots Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/android/ui_base_jni_registrar.cc ('k') | ui/base/touch/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/test/run_all_unittests.cc
diff --git a/ui/base/test/run_all_unittests.cc b/ui/base/test/run_all_unittests.cc
index cb2067a49c2ab1afc98927ec3f319051dd4e6a1e..279c0c049d1d61e1846d6b4a8b12bc8f6b9cdc79 100644
--- a/ui/base/test/run_all_unittests.cc
+++ b/ui/base/test/run_all_unittests.cc
@@ -8,8 +8,6 @@
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "build/build_config.h"
-#include "ui/base/resource/resource_bundle.h"
-#include "ui/base/ui_base_paths.h"
#if defined(OS_ANDROID)
#include "base/android/jni_android.h"
@@ -64,36 +62,9 @@ void UIBaseTestSuite::Initialize() {
#if defined(OS_MACOSX) && !defined(OS_IOS)
mock_cr_app::RegisterMockCrApp();
-
- // On Mac, a test Framework bundle is created that links locale.pak and
- // chrome_100_percent.pak at the appropriate places to ui_test.pak.
- base::mac::SetOverrideFrameworkBundlePath(
- exe_path.AppendASCII("ui_unittests Framework.framework"));
- ui::ResourceBundle::InitSharedInstanceWithLocale(
- "en-US", NULL, ui::ResourceBundle::LOAD_COMMON_RESOURCES);
-
-#elif defined(OS_IOS) || defined(OS_ANDROID)
- // On iOS, the ui_unittests binary is itself a mini bundle, with resources
- // built in. On Android, ui_unittests_apk provides the necessary framework.
- ui::ResourceBundle::InitSharedInstanceWithLocale(
- "en-US", NULL, ui::ResourceBundle::LOAD_COMMON_RESOURCES);
-
-#else
- // On other platforms, the (hardcoded) paths for chrome_100_percent.pak and
- // locale.pak get populated by later build steps. To avoid clobbering them,
- // load the test .pak files directly.
- ui::ResourceBundle::InitSharedInstanceWithPakPath(
- exe_path.AppendASCII("ui_test.pak"));
-
- // ui_unittests can't depend on the locales folder which Chrome will make
- // later, so use the path created by ui_test_pak.
- PathService::Override(ui::DIR_LOCALES, exe_path.AppendASCII("ui"));
-#endif
}
void UIBaseTestSuite::Shutdown() {
- ui::ResourceBundle::CleanupSharedInstance();
-
#if defined(OS_MACOSX) && !defined(OS_IOS)
base::mac::SetOverrideFrameworkBundle(NULL);
#endif
« no previous file with comments | « ui/base/android/ui_base_jni_registrar.cc ('k') | ui/base/touch/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698