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

Unified Diff: ui/views/test/views_interactive_ui_test_base.cc

Issue 2442933002: Create and apply ViewsInteractiveUITestBase (Closed)
Patch Set: based on comments Created 4 years, 2 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
Index: ui/views/test/views_interactive_ui_test_base.cc
diff --git a/ui/views/test/views_interactive_ui_test_base.cc b/ui/views/test/views_interactive_ui_test_base.cc
new file mode 100644
index 0000000000000000000000000000000000000000..638b958c0431cbdbbb1117f5b98883b44c42f5bd
--- /dev/null
+++ b/ui/views/test/views_interactive_ui_test_base.cc
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/views/test/views_interactive_ui_test_base.h"
+
+#include "base/path_service.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 views {
+
+ViewsInteractiveUITestBase::ViewsInteractiveUITestBase() {}
+
+ViewsInteractiveUITestBase::~ViewsInteractiveUITestBase() {}
+
+void ViewsInteractiveUITestBase::SetUp() {
+ gl::GLSurfaceTestSupport::InitializeOneOff();
+ 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);
+
+ ViewsTestBase::SetUp();
+}
+
+} // namespace views

Powered by Google App Engine
This is Rietveld 408576698