summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 20:12:40 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 20:12:40 +0000
commit4ca10ed5f913a33edd8186f3b02009a8609f851b (patch)
tree215de7e1d53dc21cb7c50c872aa9c273897265b0 /chrome_frame
parented43c9bdad3cb2fa8ac6dabc0ed91b615e70bebe (diff)
downloadchromium_src-4ca10ed5f913a33edd8186f3b02009a8609f851b.zip
chromium_src-4ca10ed5f913a33edd8186f3b02009a8609f851b.tar.gz
chromium_src-4ca10ed5f913a33edd8186f3b02009a8609f851b.tar.bz2
Instantiate a dummy notification service instance in chrome frame on the thread
where the network tests run. Some of the url request tests rely on having a valid notification service pointer in the TLS on the current thread. TBR=tommi Review URL: http://codereview.chromium.org/344025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/test/net/fake_external_tab.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome_frame/test/net/fake_external_tab.cc b/chrome_frame/test/net/fake_external_tab.cc
index 9ada450..53ac162 100644
--- a/chrome_frame/test/net/fake_external_tab.cc
+++ b/chrome_frame/test/net/fake_external_tab.cc
@@ -26,6 +26,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/notification_service.h"
#include "chrome/common/pref_names.h"
#include "chrome_frame/utils.h"
@@ -297,6 +298,8 @@ void CFUrlRequestUnittestRunner::StartTests() {
// static
DWORD CFUrlRequestUnittestRunner::RunAllUnittests(void* param) {
PlatformThread::SetName("CFUrlRequestUnittestRunner");
+ // Needed for some url request tests like the intercept job tests, etc.
+ NotificationService service;
CFUrlRequestUnittestRunner* me =
reinterpret_cast<CFUrlRequestUnittestRunner*>(param);
me->Run();