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

Unified Diff: mojo/services/view_manager/view_manager_unittest.cc

Issue 554163003: Revert of Create native_viewport_service, don't build it into mojo_shell unless Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | « mojo/services/view_manager/ids.h ('k') | mojo/services/window_manager/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/view_manager_unittest.cc
diff --git a/mojo/services/view_manager/view_manager_unittest.cc b/mojo/services/view_manager/view_manager_unittest.cc
index cc972d436de05bfea76535c994bd551c6a234003..be9e7ccf940c3dccf2eb627992f016ce51ff261d 100644
--- a/mojo/services/view_manager/view_manager_unittest.cc
+++ b/mojo/services/view_manager/view_manager_unittest.cc
@@ -31,10 +31,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
-#if defined(OS_WIN)
-#include "ui/gfx/win/window_impl.h"
-#endif
-
namespace mojo {
namespace service {
@@ -459,13 +455,8 @@
virtual void SetUp() OVERRIDE {
ASSERT_TRUE(ViewManagerProxy::IsInInitialState());
+
test_helper_.Init();
-
-#if defined(OS_WIN)
- // As we unload the wndproc of window classes we need to be sure to
- // unregister them.
- gfx::WindowImpl::UnregisterClassesAtExit();
-#endif
test_helper_.SetLoaderForURL(
scoped_ptr<ApplicationLoader>(new EmbedApplicationLoader()),
@@ -565,8 +556,13 @@
}
// Verifies client gets a valid id.
+#if defined(OS_LINUX)
// http://crbug.com/396492
-TEST_F(ViewManagerTest, DISABLED_ValidId) {
+#define MAYBE_ValidId DISABLED_ValidId
+#else
+#define MAYBE_ValidId ValidId
+#endif
+TEST_F(ViewManagerTest, MAYBE_ValidId) {
// TODO(beng): this should really have the URL of the application that
// connected to ViewManagerInit.
EXPECT_EQ("OnEmbed creator=",
« no previous file with comments | « mojo/services/view_manager/ids.h ('k') | mojo/services/window_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698