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

Side by Side Diff: extensions/renderer/service_worker_apitest.cc

Issue 1211243010: [Service Worker Registration] Registered extension scheme to allow service workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Created 5 years, 5 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
OLDNEW
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
Devlin 2015/07/10 21:51:23 nit: no (c)
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/extension_apitest.h"
Devlin 2015/07/10 21:51:23 This would be a layering violation (no chrome/ fil
6
7 namespace extensions {
8 namespace {
Devlin 2015/07/10 21:51:23 No need to put this in an anonymous namespace (I d
9
10 class ServiceWorkerTest : public ExtensionApiTest {
11 public:
Devlin 2015/07/10 21:51:23 nit: indentation is off. You can also use "git cl
12 // Set the channel to "trunk" since service workers are restricted to trunk.
13 ServiceWorkerTest()
14 : current_channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) {}
15 ~ServiceWorkerTest() override {}
16
17 private:
18 extensions::ScopedCurrentChannel current_channel_;
Devlin 2015/07/10 21:51:23 DISALLOW_COPY_AND_ASSIGN()
19 };
20
21 // This should fail because there are changes to be made to
22 // successfully register a service worker.
23 IN_PROC_BROWSER_TEST_F(ServiceWorkerTest, RegisterServiceWorker) {
Devlin 2015/07/10 21:51:23 Let's have two tests, one that checks that service
24 ASSERT_FALSE(RunExtensionTest("service_worker/register")) << message_;
25 }
26
27 } // namespace
28 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698