summaryrefslogtreecommitdiffstats
path: root/chrome_elf/blacklist/test
diff options
context:
space:
mode:
authorkrstnmnlsn@chromium.org <krstnmnlsn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 19:27:07 +0000
committerkrstnmnlsn@chromium.org <krstnmnlsn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 19:27:07 +0000
commit1c2bbf47bd5c796939967934f23862b2ef5a4814 (patch)
tree3c62b5b7bc8e3c7c8f79b1d40c9307aa1507fad0 /chrome_elf/blacklist/test
parentb3313b71eb51e5fc5e83343e437c86b98c49be54 (diff)
downloadchromium_src-1c2bbf47bd5c796939967934f23862b2ef5a4814.zip
chromium_src-1c2bbf47bd5c796939967934f23862b2ef5a4814.tar.gz
chromium_src-1c2bbf47bd5c796939967934f23862b2ef5a4814.tar.bz2
Adding blacklisted dlls to safe browsing incident reports.
Also added a unit test to environment_data_collection_win_unittest.cc Edited chrome_elf_init_win.cc and blacklist.cc so that the registry is only cleared immediately before being repopulated (and safe browsing is not left with an empty registry to read from). BUG= Review URL: https://codereview.chromium.org/346763003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_elf/blacklist/test')
-rw-r--r--chrome_elf/blacklist/test/blacklist_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome_elf/blacklist/test/blacklist_test.cc b/chrome_elf/blacklist/test/blacklist_test.cc
index 2e3f9a4..4f9859d 100644
--- a/chrome_elf/blacklist/test/blacklist_test.cc
+++ b/chrome_elf/blacklist/test/blacklist_test.cc
@@ -32,7 +32,7 @@ extern "C" {
// When modifying the blacklist in the test process, use the exported test dll
// functions on the test blacklist dll, not the ones linked into the test
// executable itself.
-__declspec(dllimport) bool TestDll_AddDllsFromRegistryToBlacklist();
+__declspec(dllimport) void TestDll_AddDllsFromRegistryToBlacklist();
__declspec(dllimport) bool TestDll_AddDllToBlacklist(const wchar_t* dll_name);
__declspec(dllimport) bool TestDll_IsBlacklistInitialized();
__declspec(dllimport) bool TestDll_RemoveDllFromBlacklist(
@@ -240,7 +240,7 @@ TEST_F(BlacklistTest, AddDllsFromRegistryToBlacklist) {
test_data[i].dll_name);
}
- EXPECT_TRUE(TestDll_AddDllsFromRegistryToBlacklist());
+ TestDll_AddDllsFromRegistryToBlacklist();
CheckBlacklistedDllsNotLoaded();
}