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

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

Issue 1530002: Move history API out of experimental. Allow extensions to override history page. (Closed)
Patch Set: Rebase for commit. Created 10 years, 8 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
« no previous file with comments | « chrome/browser/extensions/extension_override_apitest.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/common/chrome_switches.h" 6 #include "chrome/common/chrome_switches.h"
7 7
8 class ExperimentalApiTest : public ExtensionApiTest { 8 class ExperimentalApiTest : public ExtensionApiTest {
9 public: 9 public:
10 void SetUpCommandLine(CommandLine* command_line) { 10 void SetUpCommandLine(CommandLine* command_line) {
(...skipping 11 matching lines...) Expand all
22 // ExtensionBrowserTest doesn't actually fail, it just times out. To fix this 22 // ExtensionBrowserTest doesn't actually fail, it just times out. To fix this
23 // I'll need to add an EXTENSION_LOAD_ERROR notification, which is probably 23 // I'll need to add an EXTENSION_LOAD_ERROR notification, which is probably
24 // too much for the branch. I'll enable this on trunk later. 24 // too much for the branch. I'll enable this on trunk later.
25 //ASSERT_FALSE(RunExtensionTest("permissions/enabled"))) << message_; 25 //ASSERT_FALSE(RunExtensionTest("permissions/enabled"))) << message_;
26 } 26 }
27 27
28 IN_PROC_BROWSER_TEST_F(ExperimentalApiTest, PermissionsSucceed) { 28 IN_PROC_BROWSER_TEST_F(ExperimentalApiTest, PermissionsSucceed) {
29 ASSERT_TRUE(RunExtensionTest("permissions/enabled")) << message_; 29 ASSERT_TRUE(RunExtensionTest("permissions/enabled")) << message_;
30 } 30 }
31 31
32 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ExperimentalPermissionsFail) {
33 // At the time this test is being created, there is no experimental
34 // function that will not be graduating soon, and does not require a
35 // tab id as an argument. So, we need the tab permission to get
36 // a tab id.
37 ASSERT_TRUE(RunExtensionTest("permissions/experimental_disabled"))
38 << message_;
39 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_override_apitest.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698