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

Unified Diff: chrome_elf/create_file/chrome_create_file_unittest.cc

Issue 183833004: Make chrome_elf use thunks instead of function pointers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move all memory mgmt out of CopyThunk Created 6 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
Index: chrome_elf/create_file/chrome_create_file_unittest.cc
diff --git a/chrome_elf/create_file/chrome_create_file_unittest.cc b/chrome_elf/create_file/chrome_create_file_unittest.cc
index e25b159fcbe9bd554d3c98cc880735e793a4f174..e958aa96e05fded8f387cdaa441acf6ac2e3ec06 100644
--- a/chrome_elf/create_file/chrome_create_file_unittest.cc
+++ b/chrome_elf/create_file/chrome_create_file_unittest.cc
@@ -377,9 +377,7 @@ TEST_F(ChromeCreateFileTest, BypassTest) {
}
TEST_F(ChromeCreateFileTest, NtCreateFileAddressCheck) {
- HMODULE ntdll_handle = ::GetModuleHandle(L"ntdll.dll");
- EXPECT_EQ(::GetProcAddress(ntdll_handle, "NtCreateFile"),
- g_ntdll_lookup["NtCreateFile"]);
+ EXPECT_EQ(&g_nt_thunk_storage, g_ntdll_lookup["NtCreateFile"]);
}
TEST_F(ChromeCreateFileTest, ReadWriteFromNtDll) {
« no previous file with comments | « chrome_elf/chrome_elf.gyp ('k') | chrome_elf/ntdll_cache.h » ('j') | chrome_elf/ntdll_cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698