Index: content/browser/service_worker/service_worker_dispatcher_host_unittest.cc |
diff --git a/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc b/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc |
index 8a407eff05ef0604dea3f10257d4646b0ab92d39..d66f01ebe9b062dd3f98c35e2da9fecbb3c37270 100644 |
--- a/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc |
+++ b/content/browser/service_worker/service_worker_dispatcher_host_unittest.cc |
@@ -4,6 +4,8 @@ |
#include "content/browser/service_worker/service_worker_dispatcher_host.h" |
+#include "base/atomic_sequence_num.h" |
+#include "base/bind.h" |
#include "base/command_line.h" |
#include "base/files/file_path.h" |
#include "base/run_loop.h" |
@@ -59,7 +61,9 @@ class TestingServiceWorkerDispatcherHost : public ServiceWorkerDispatcherHost { |
: ServiceWorkerDispatcherHost(process_id, NULL), |
bad_messages_received_count_(0), |
helper_(helper) { |
- Init(context_wrapper); |
+ Init(context_wrapper, |
+ base::Bind(&base::AtomicSequenceNumber::GetNext, |
+ base::Unretained(&next_routing_id_))); |
} |
virtual bool Send(IPC::Message* message) OVERRIDE { |
@@ -76,6 +80,7 @@ class TestingServiceWorkerDispatcherHost : public ServiceWorkerDispatcherHost { |
protected: |
EmbeddedWorkerTestHelper* helper_; |
+ base::AtomicSequenceNumber next_routing_id_; |
virtual ~TestingServiceWorkerDispatcherHost() {} |
}; |