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

Side by Side Diff: content/browser/service_worker/service_worker_dispatcher_host_unittest.cc

Issue 127583002: Separate EmbeddedWorker messages into another file to use different msg class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/service_worker/service_worker_dispatcher_host.h" 5 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "content/browser/browser_thread_impl.h" 10 #include "content/browser/browser_thread_impl.h"
11 #include "content/browser/service_worker/service_worker_context_core.h" 11 #include "content/browser/service_worker/service_worker_context_core.h"
12 #include "content/browser/service_worker/service_worker_context_wrapper.h" 12 #include "content/browser/service_worker/service_worker_context_wrapper.h"
13 #include "content/common/service_worker_messages.h" 13 #include "content/common/service_worker/service_worker_messages.h"
14 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
15 #include "content/public/test/test_browser_thread_bundle.h" 15 #include "content/public/test/test_browser_thread_bundle.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 class ServiceWorkerDispatcherHostTest : public testing::Test { 20 class ServiceWorkerDispatcherHostTest : public testing::Test {
21 protected: 21 protected:
22 ServiceWorkerDispatcherHostTest() 22 ServiceWorkerDispatcherHostTest()
23 : browser_thread_bundle_(TestBrowserThreadBundle::IO_MAINLOOP) {} 23 : browser_thread_bundle_(TestBrowserThreadBundle::IO_MAINLOOP) {}
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 ServiceWorkerHostMsg_ProviderCreated(kProviderId), 181 ServiceWorkerHostMsg_ProviderCreated(kProviderId),
182 &handled); 182 &handled);
183 EXPECT_TRUE(handled); 183 EXPECT_TRUE(handled);
184 EXPECT_TRUE(context()->GetProviderHost(kRenderProcessId, kProviderId)); 184 EXPECT_TRUE(context()->GetProviderHost(kRenderProcessId, kProviderId));
185 EXPECT_TRUE(dispatcher_host->HasOneRef()); 185 EXPECT_TRUE(dispatcher_host->HasOneRef());
186 dispatcher_host = NULL; 186 dispatcher_host = NULL;
187 EXPECT_FALSE(context()->GetProviderHost(kRenderProcessId, kProviderId)); 187 EXPECT_FALSE(context()->GetProviderHost(kRenderProcessId, kProviderId));
188 } 188 }
189 189
190 } // namespace content 190 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698