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

Side by Side Diff: chrome/browser/extensions/service_worker_apitest.cc

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "chrome/browser/ui/tabs/tab_strip_model.h" 6 #include "chrome/browser/ui/tabs/tab_strip_model.h"
7 #include "components/version_info/version_info.h"
7 #include "content/public/test/browser_test_utils.h" 8 #include "content/public/test/browser_test_utils.h"
8 #include "extensions/test/extension_test_message_listener.h" 9 #include "extensions/test/extension_test_message_listener.h"
9 10
10 namespace extensions { 11 namespace extensions {
11 12
12 class ServiceWorkerTest : public ExtensionApiTest { 13 class ServiceWorkerTest : public ExtensionApiTest {
13 public: 14 public:
14 // Set the channel to "trunk" since service workers are restricted to trunk. 15 // Set the channel to "trunk" since service workers are restricted to trunk.
15 ServiceWorkerTest() 16 ServiceWorkerTest()
16 : current_channel_(version_info::Channel::UNKNOWN) {} 17 : current_channel_(version_info::Channel::UNKNOWN) {}
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 contents->GetController().Reload(true); 59 contents->GetController().Reload(true);
59 content::WaitForLoadStop(contents); 60 content::WaitForLoadStop(contents);
60 61
61 ASSERT_TRUE(content::ExecuteScriptAndExtractString( 62 ASSERT_TRUE(content::ExecuteScriptAndExtractString(
62 contents, "window.domAutomationController.send(document.body.innerText);", 63 contents, "window.domAutomationController.send(document.body.innerText);",
63 &output)); 64 &output));
64 EXPECT_EQ("Caught a fetch!", output); 65 EXPECT_EQ("Caught a fetch!", output);
65 } 66 }
66 67
67 } // namespace extensions 68 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.cc ('k') | chrome/browser/extensions/shared_module_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698