summaryrefslogtreecommitdiffstats
path: root/chrome/test/unit/unittests.vcproj
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 17:18:04 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 17:18:04 +0000
commitbc0caef9b0af84365b6dd546cd21673c9790ca58 (patch)
tree54881e9c8bc957f65901a53978d18865135392dd /chrome/test/unit/unittests.vcproj
parent4e9f6be54df1f1f6f9cfe243624ef976f15d452f (diff)
downloadchromium_src-bc0caef9b0af84365b6dd546cd21673c9790ca58.zip
chromium_src-bc0caef9b0af84365b6dd546cd21673c9790ca58.tar.gz
chromium_src-bc0caef9b0af84365b6dd546cd21673c9790ca58.tar.bz2
This CL adds unit-tests for the SafeBrowsingBlockingPage class.
This required: - creating a factory to create SafeBrowsingBlockingPage instances (so unit-tests can provide their own sub-classes). - making the code posts tasks on the current message loop when there is no IO thread. This should only happen in tests scenarios where we only have 1 thread. BUG=6731 TEST=Run the unit-tests. In Chrome, navigate to pages flagged as malware (ex: ianfette.org) and make sure the safe browsing feature still works as expected. Review URL: http://codereview.chromium.org/56135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/unit/unittests.vcproj')
-rw-r--r--chrome/test/unit/unittests.vcproj4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/unit/unittests.vcproj b/chrome/test/unit/unittests.vcproj
index 46f501b..d4e3864 100644
--- a/chrome/test/unit/unittests.vcproj
+++ b/chrome/test/unit/unittests.vcproj
@@ -628,6 +628,10 @@
>
</File>
<File
+ RelativePath="..\..\browser\safe_browsing\safe_browsing_blocking_page_unittest.cc"
+ >
+ </File>
+ <File
RelativePath="..\..\browser\safe_browsing\safe_browsing_database_unittest.cc"
>
</File>