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

Unified Diff: ui/base/win/hwnd_subclass_unittest.cc

Issue 10808072: ui: No need to typedef testing::Test in unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/base/win/hwnd_subclass_unittest.cc
diff --git a/ui/base/win/hwnd_subclass_unittest.cc b/ui/base/win/hwnd_subclass_unittest.cc
index 814f3df5a6dd5fbeb592253511c332acd08d52f1..5917ef2c101a8c1d20ba864f010da4e18eefb871 100644
--- a/ui/base/win/hwnd_subclass_unittest.cc
+++ b/ui/base/win/hwnd_subclass_unittest.cc
@@ -2,15 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ui/base/win/hwnd_subclass.h"
+
#include "base/basictypes.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/win/window_impl.h"
-#include "ui/base/win/hwnd_subclass.h"
namespace ui {
-typedef testing::Test HWNDSubclassTest;
-
namespace {
class TestWindow : public ui::WindowImpl {
@@ -68,7 +67,7 @@ class TestMessageFilter : public HWNDMessageFilter {
} // namespace
-TEST_F(HWNDSubclassTest, Filtering) {
+TEST(HWNDSubclassTest, Filtering) {
TestWindow window;
window.Init(NULL, gfx::Rect(0, 0, 100, 100));
EXPECT_TRUE(window.hwnd() != NULL);
@@ -97,7 +96,7 @@ TEST_F(HWNDSubclassTest, Filtering) {
}
}
-TEST_F(HWNDSubclassTest, FilteringMultipleFilters) {
+TEST(HWNDSubclassTest, FilteringMultipleFilters) {
TestWindow window;
window.Init(NULL, gfx::Rect(0, 0, 100, 100));
EXPECT_TRUE(window.hwnd() != NULL);
@@ -131,7 +130,7 @@ TEST_F(HWNDSubclassTest, FilteringMultipleFilters) {
}
}
-TEST_F(HWNDSubclassTest, RemoveFilter) {
+TEST(HWNDSubclassTest, RemoveFilter) {
TestWindow window;
window.Init(NULL, gfx::Rect(0, 0, 100, 100));
EXPECT_TRUE(window.hwnd() != NULL);

Powered by Google App Engine
This is Rietveld 408576698