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

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

Issue 557513002: Deregister window classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add switch to control window unregistering 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 | « no previous file | ui/gfx/win/window_impl.h » ('j') | ui/gfx/win/window_impl.h » ('J')
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 a6ceca8c2087bb58796a03d2fdffdd156daf1750..259fd1eb0670be0251623aa65a860f9e2aca7f5f 100644
--- a/mojo/services/view_manager/view_manager_unittest.cc
+++ b/mojo/services/view_manager/view_manager_unittest.cc
@@ -31,6 +31,10 @@
#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 {
@@ -432,6 +436,10 @@ class ViewManagerTest : public testing::Test {
connection3_(NULL) {}
virtual void SetUp() OVERRIDE {
+#if defined(OS_WIN)
+ // Ensure that all window classes are destroyed at end of each test.
+ gfx::WindowImpl::SetUnregisterClassesAtExit(true);
Bernhard Bauer 2014/09/11 08:45:06 This relies somewhat on the fact that there is an
DaveMoore 2014/09/12 04:27:28 Changed it to use RegisterTask() instead. On 2014
+#endif
test_helper_.Init();
test_helper_.SetLoaderForURL(
@@ -533,13 +541,8 @@ TEST_F(ViewManagerTest, MultipleEmbedRootsBeforeWTHReady) {
}
// Verifies client gets a valid id.
-#if defined(OS_LINUX)
// http://crbug.com/396492
-#define MAYBE_ValidId DISABLED_ValidId
-#else
-#define MAYBE_ValidId ValidId
-#endif
-TEST_F(ViewManagerTest, MAYBE_ValidId) {
+TEST_F(ViewManagerTest, DISABLED_ValidId) {
Bernhard Bauer 2014/09/11 08:45:06 What's this about?
DaveMoore 2014/09/12 04:27:28 Accident. I'll submit the view_manager_unittests c
// TODO(beng): this should really have the URL of the application that
// connected to ViewManagerInit.
EXPECT_EQ("OnEmbed creator=",
« no previous file with comments | « no previous file | ui/gfx/win/window_impl.h » ('j') | ui/gfx/win/window_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698