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

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

Issue 2935893004: Add unittest for ArcNotificationContentView (Closed)
Patch Set: . Created 3 years, 6 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/arc/notification/arc_notification_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/test/run_all_unittests.cc
diff --git a/ui/arc/test/run_all_unittests.cc b/ui/arc/test/run_all_unittests.cc
index d9558ea09eb5d0b002173c6acdfb0e4db5dc362f..db674b81daa3f9856a943f385a9bd2bd1d29ca4f 100644
--- a/ui/arc/test/run_all_unittests.cc
+++ b/ui/arc/test/run_all_unittests.cc
@@ -3,9 +3,13 @@
// found in the LICENSE file.
#include "base/bind.h"
+#include "base/path_service.h"
#include "base/test/launcher/unit_test_launcher.h"
+#include "base/test/test_discardable_memory_allocator.h"
#include "base/test/test_suite.h"
#include "mojo/edk/embedder/embedder.h"
+#include "ui/base/resource/resource_bundle.h"
+#include "ui/base/ui_base_paths.h"
#include "ui/gl/test/gl_surface_test_support.h"
namespace {
@@ -18,6 +22,17 @@ class UiArcTestSuite : public base::TestSuite {
void Initialize() override {
base::TestSuite::Initialize();
gl::GLSurfaceTestSupport::InitializeOneOff();
+
+ // To use resource bundles
+ ui::RegisterPathProvider();
+ base::FilePath ui_test_pak_path;
+ ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
+ ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
+ }
+
+ void Shutdown() override {
+ ui::ResourceBundle::CleanupSharedInstance();
+ base::TestSuite::Shutdown();
}
private:
« no previous file with comments | « ui/arc/notification/arc_notification_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698