summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_context_menu_apitest.cc
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 20:20:15 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 20:20:15 +0000
commit66dbfb2c72ec4d4884255777c52c7db55ae634d8 (patch)
treeb6560104e68fb388df746f1e357b5ac0bdc627b4 /chrome/browser/extensions/extension_context_menu_apitest.cc
parent44af8775568b168c5288db91cfd429a86b40684f (diff)
downloadchromium_src-66dbfb2c72ec4d4884255777c52c7db55ae634d8.zip
chromium_src-66dbfb2c72ec4d4884255777c52c7db55ae634d8.tar.gz
chromium_src-66dbfb2c72ec4d4884255777c52c7db55ae634d8.tar.bz2
Add update and removeAll functions to extensions context menu API
BUG=39505 TEST=Should be able to add a bunch of context menu items and then change or remove them using update and removeAll respectively. Review URL: http://codereview.chromium.org/1736028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_context_menu_apitest.cc')
-rw-r--r--chrome/browser/extensions/extension_context_menu_apitest.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_context_menu_apitest.cc b/chrome/browser/extensions/extension_context_menu_apitest.cc
new file mode 100644
index 0000000..ac8b114
--- /dev/null
+++ b/chrome/browser/extensions/extension_context_menu_apitest.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/command_line.h"
+#include "chrome/browser/extensions/extension_apitest.h"
+#include "chrome/common/chrome_switches.h"
+
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContextMenus) {
+ // TODO(asargent): Remove when context menu API is no longer experimental
+ // (http://crbug.com/39508).
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kEnableExperimentalExtensionApis);
+
+ ASSERT_TRUE(RunExtensionTest("context_menus")) << message_;
+}