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

Unified Diff: base/win/pe_image_test.cc

Issue 948593004: Rework PE image tests to use a compiled DLL instead of a system one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update expectations Created 5 years, 10 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/base_unittests.isolate ('k') | base/win/pe_image_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/pe_image_test.cc
diff --git a/ipc/ipc_message_attachment.cc b/base/win/pe_image_test.cc
similarity index 52%
copy from ipc/ipc_message_attachment.cc
copy to base/win/pe_image_test.cc
index 83440ae8e008847eebd411f8ffd08c69d9f529fe..afeb6873b11e451876ecd1a12f6dce7efd27a1a4 100644
--- a/ipc/ipc_message_attachment.cc
+++ b/base/win/pe_image_test.cc
@@ -2,14 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ipc/ipc_message_attachment.h"
+#include <windows.h>
-namespace IPC {
+extern "C" {
-MessageAttachment::MessageAttachment() {
+__declspec(dllexport) void export_func() {
+ HWND dummy = GetDesktopWindow();
+ SetWindowTextA(dummy, "dummy");
}
-
-MessageAttachment::~MessageAttachment() {
}
-
-} // namespace IPC
« no previous file with comments | « base/base_unittests.isolate ('k') | base/win/pe_image_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698