summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-14 22:42:35 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-14 22:42:35 +0000
commit9e23bb1bba29dad5305e8f8a08341aefe7275502 (patch)
tree568449afe4ced76a657774ede2445611af70c1e5 /chrome/browser/extensions
parent8c938a0b244d9d12e2c57576925a2888c3e59fa8 (diff)
downloadchromium_src-9e23bb1bba29dad5305e8f8a08341aefe7275502.zip
chromium_src-9e23bb1bba29dad5305e8f8a08341aefe7275502.tar.gz
chromium_src-9e23bb1bba29dad5305e8f8a08341aefe7275502.tar.bz2
Remove ExtensionContentScriptInject unit test.
This was somehow causing crashes in ExtensionViewTest. Review URL: http://codereview.chromium.org/68012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13715 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rwxr-xr-xchrome/browser/extensions/extension_content_script_inject_unittest.cc59
1 files changed, 0 insertions, 59 deletions
diff --git a/chrome/browser/extensions/extension_content_script_inject_unittest.cc b/chrome/browser/extensions/extension_content_script_inject_unittest.cc
deleted file mode 100755
index 05cb23e..0000000
--- a/chrome/browser/extensions/extension_content_script_inject_unittest.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2009 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/browser.h"
-#include "chrome/browser/extensions/extension_error_reporter.h"
-#include "chrome/browser/extensions/test_extension_loader.h"
-#include "chrome/common/chrome_paths.h"
-#include "chrome/test/in_process_browser_test.h"
-#include "chrome/test/ui_test_utils.h"
-#include "net/base/net_util.h"
-
-namespace {
-
-// The extension we're using as our test case.
-const char* kExtensionId = "00123456789abcdef0123456789abcdef0123456";
-
-} // namespace
-
-class ExtensionContentScriptInjectTest : public InProcessBrowserTest {
- public:
- virtual void SetUp() {
- // Initialize the error reporter here, otherwise BrowserMain will create it
- // with the wrong MessageLoop.
- ExtensionErrorReporter::Init(false);
-
- InProcessBrowserTest::SetUp();
- }
-};
-
-// Tests that an extension's user script gets injected into content.
-IN_PROC_BROWSER_TEST_F(ExtensionContentScriptInjectTest, Simple) {
- // Get the path to our extension.
- FilePath extension_path;
- ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &extension_path));
- extension_path = extension_path.AppendASCII("extensions").
- AppendASCII("content_script_inject");
- ASSERT_TRUE(file_util::DirectoryExists(extension_path)); // sanity check
-
- // Load it.
- TestExtensionLoader loader(browser()->profile());
- Extension* extension = loader.Load(kExtensionId, extension_path);
- ASSERT_TRUE(extension);
-
- // Get the file URL to our test page.
- FilePath test_page_path;
- ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_page_path));
- test_page_path = test_page_path.AppendASCII("extensions").
- AppendASCII("content_script_inject_page.html");
- ASSERT_TRUE(file_util::PathExists(test_page_path)); // sanity check
- GURL test_page_url = net::FilePathToFileURL(test_page_path);
-
- ui_test_utils::NavigateToURL(browser(), test_page_url);
- TabContents* tabContents = browser()->GetSelectedTabContents();
-
- // TODO(aa): This test doesn't actually verify anything now. I was going to
- // check the title, but it is flakey in vista, so I need to come up with a
- // different way to verify the pass or fail of the test.
-}