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

Unified Diff: trunk/src/chrome_elf/create_file/chrome_create_file_unittest.cc

Issue 189803007: Revert 255151 "Make chrome_elf use thunks instead of function po..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/chrome_elf/chrome_elf.gyp ('k') | trunk/src/chrome_elf/ntdll_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome_elf/create_file/chrome_create_file_unittest.cc
===================================================================
--- trunk/src/chrome_elf/create_file/chrome_create_file_unittest.cc (revision 255702)
+++ trunk/src/chrome_elf/create_file/chrome_create_file_unittest.cc (working copy)
@@ -377,7 +377,9 @@
}
TEST_F(ChromeCreateFileTest, NtCreateFileAddressCheck) {
- EXPECT_EQ(&g_nt_thunk_storage, g_ntdll_lookup["NtCreateFile"]);
+ HMODULE ntdll_handle = ::GetModuleHandle(L"ntdll.dll");
+ EXPECT_EQ(::GetProcAddress(ntdll_handle, "NtCreateFile"),
+ g_ntdll_lookup["NtCreateFile"]);
}
TEST_F(ChromeCreateFileTest, ReadWriteFromNtDll) {
« no previous file with comments | « trunk/src/chrome_elf/chrome_elf.gyp ('k') | trunk/src/chrome_elf/ntdll_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698