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

Unified Diff: base/win/message_window_unittest.cc

Issue 16780006: Moved remoting::win::MessageWindow to base::win::MessageWindow so that it could be re-used outside … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 7 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 | « base/win/message_window.cc ('k') | remoting/host/clipboard_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/message_window_unittest.cc
diff --git a/remoting/host/win/message_window_unittest.cc b/base/win/message_window_unittest.cc
similarity index 89%
rename from remoting/host/win/message_window_unittest.cc
rename to base/win/message_window_unittest.cc
index d12af7b68ebb79939cc52019d66aaacd719c0493..8f5ff43aa2a4626de6572b77342831e92979432c 100644
--- a/remoting/host/win/message_window_unittest.cc
+++ b/base/win/message_window_unittest.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/host/win/message_window.h"
+#include "base/win/message_window.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace remoting {
+namespace base {
namespace {
@@ -46,16 +46,16 @@ bool MessageWindowDelegate::HandleMessage(
TEST(MessageWindowTest, Create) {
MessageWindowDelegate delegate;
win::MessageWindow window;
- EXPECT_TRUE(window.Create(&delegate));
+ EXPECT_TRUE(window.Create(&delegate, NULL));
}
// Verifies that the created window can receive messages.
TEST(MessageWindowTest, SendMessage) {
MessageWindowDelegate delegate;
win::MessageWindow window;
- EXPECT_TRUE(window.Create(&delegate));
+ EXPECT_TRUE(window.Create(&delegate, NULL));
EXPECT_EQ(SendMessage(window.hwnd(), WM_USER, 100, 0), 100);
}
-} // namespace remoting
+} // namespace base
« no previous file with comments | « base/win/message_window.cc ('k') | remoting/host/clipboard_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698