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

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

Issue 62203007: Implement memory-persistent registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix variable that we don't need anymore Created 7 years 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 (c) 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/message_loop/message_loop.h" 9 #include "base/message_loop/message_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"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ServiceWorkerHostMsg_ProviderCreated(kProviderId), 182 ServiceWorkerHostMsg_ProviderCreated(kProviderId),
183 &handled); 183 &handled);
184 EXPECT_TRUE(handled); 184 EXPECT_TRUE(handled);
185 EXPECT_TRUE(context()->GetProviderHost(kRenderProcessId, kProviderId)); 185 EXPECT_TRUE(context()->GetProviderHost(kRenderProcessId, kProviderId));
186 EXPECT_TRUE(dispatcher_host->HasOneRef()); 186 EXPECT_TRUE(dispatcher_host->HasOneRef());
187 dispatcher_host = NULL; 187 dispatcher_host = NULL;
188 EXPECT_FALSE(context()->GetProviderHost(kRenderProcessId, kProviderId)); 188 EXPECT_FALSE(context()->GetProviderHost(kRenderProcessId, kProviderId));
189 } 189 }
190 190
191 } // namespace content 191 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698