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

Unified Diff: chrome/browser/extensions/api/context_menu/context_menu_apitest.cc

Issue 11747025: Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ms release build Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/context_menu/context_menu_apitest.cc
diff --git a/chrome/browser/extensions/api/context_menu/context_menu_apitest.cc b/chrome/browser/extensions/api/context_menu/context_menu_apitest.cc
deleted file mode 100644
index 85d2441c080c4530d8c811c8883208b3452f6ab2..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/context_menu/context_menu_apitest.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/extensions/extension_action.h"
-#include "chrome/browser/extensions/extension_apitest.h"
-#include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/test/base/ui_test_utils.h"
-
-namespace extensions {
-
-// Times out on win asan, http://crbug.com/166026
-#if defined(OS_WIN) && defined(ADDRESS_SANITIZER)
-#define MAYBE_ContextMenus DISABLED_ContextMenus
-#else
-#define MAYBE_ContextMenus ContextMenus
-#endif
-IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_ContextMenus) {
- ASSERT_TRUE(RunExtensionTest("context_menus/basics")) << message_;
- ASSERT_TRUE(RunExtensionTest("context_menus/no_perms")) << message_;
- ASSERT_TRUE(RunExtensionTest("context_menus/item_ids")) << message_;
- ASSERT_TRUE(RunExtensionTest("context_menus/event_page")) << message_;
-}
-
-// crbug.com/51436 -- creating context menus from multiple script contexts
-// should work.
-IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContextMenusFromMultipleContexts) {
- ASSERT_TRUE(test_server()->Start());
- ASSERT_TRUE(RunExtensionTest("context_menus/add_from_multiple_contexts"))
- << message_;
- const extensions::Extension* extension = GetSingleLoadedExtension();
- ASSERT_TRUE(extension) << message_;
-
- {
- // Tell the extension to update the page action state.
- ResultCatcher catcher;
- ui_test_utils::NavigateToURL(browser(),
- extension->GetResourceURL("popup.html"));
- ASSERT_TRUE(catcher.GetNextResult());
- }
-
- {
- // Tell the extension to update the page action state again.
- ResultCatcher catcher;
- ui_test_utils::NavigateToURL(browser(),
- extension->GetResourceURL("popup2.html"));
- ASSERT_TRUE(catcher.GetNextResult());
- }
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698