OLD | NEW |
---|---|
(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 | |
OLD | NEW |