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

Side by Side Diff: base/win/pe_image_test.cc

Issue 946183002: Add base_unittests to win8 trybot. Fix PEImage tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix expectations Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <windows.h>
6
7 #include <cfgmgr32.h>
8 #include <shellapi.h>
9
10 extern "C" {
11
12 __declspec(dllexport) void ExportFunc1() {
13 // Call into user32.dll.
14 HWND dummy = GetDesktopWindow();
15 SetWindowTextA(dummy, "dummy");
16 }
17
18 __declspec(dllexport) void ExportFunc2() {
19 // Call into cfgmgr32.dll.
20 CM_MapCrToWin32Err(CR_SUCCESS, ERROR_SUCCESS);
21 SHFILEOPSTRUCT file_operation = {0};
22 // Call into shell32.dll.
rvargas (doing something else) 2015/02/24 20:03:22 nit: add empty line before this one (and @24)
Will Harris 2015/02/24 20:46:54 Done.
23 SHFileOperation(&file_operation);
24 // Call into kernel32.dll.
25 HANDLE h = CreateEvent(NULL, FALSE, FALSE, NULL);
26 CloseHandle(h);
27 }
28
29 } // extern "C"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698