| Index: extensions/renderer/guest_view/mime_handler_view/mime_handler_view_browsertest.cc
|
| diff --git a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_browsertest.cc b/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_browsertest.cc
|
| deleted file mode 100644
|
| index d4c33d6c8da215288877bf582482ab75878acaf7..0000000000000000000000000000000000000000
|
| --- a/extensions/renderer/guest_view/mime_handler_view/mime_handler_view_browsertest.cc
|
| +++ /dev/null
|
| @@ -1,74 +0,0 @@
|
| -// Copyright 2014 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/base_paths.h"
|
| -#include "base/files/file_util.h"
|
| -#include "base/path_service.h"
|
| -#include "chrome/browser/extensions/extension_apitest.h"
|
| -#include "chrome/test/base/ui_test_utils.h"
|
| -#include "content/public/test/browser_test_utils.h"
|
| -#include "extensions/browser/extension_registry.h"
|
| -#include "extensions/test/result_catcher.h"
|
| -
|
| -// The test extension id is set by the key value in the manifest.
|
| -const char* kExtensionId = "oickdpebdnfbgkcaoklfcdhjniefkcji";
|
| -
|
| -class MimeHandlerViewTest : public ExtensionApiTest {
|
| - public:
|
| - ~MimeHandlerViewTest() override {}
|
| -
|
| - const extensions::Extension* LoadTestExtension() {
|
| - const extensions::Extension* extension = LoadExtension(
|
| - test_data_dir_.AppendASCII("mime_handler_view"));
|
| - if (!extension)
|
| - return nullptr;
|
| -
|
| - CHECK_EQ(std::string(kExtensionId), extension->id());
|
| -
|
| - return extension;
|
| - }
|
| -
|
| - void RunTest(const std::string& path) {
|
| - const extensions::Extension* extension = LoadTestExtension();
|
| - ASSERT_TRUE(extension);
|
| -
|
| - extensions::ResultCatcher catcher;
|
| -
|
| - GURL extension_url("chrome-extension://" + std::string(kExtensionId) + "/" +
|
| - path);
|
| - ui_test_utils::NavigateToURL(browser(), extension_url);
|
| -
|
| - if (!catcher.GetNextResult())
|
| - FAIL() << catcher.message();
|
| - }
|
| -};
|
| -
|
| -// Not working on Windows because of crbug.com/443466.
|
| -#if defined(OS_WIN)
|
| -#define MAYBE_PostMessage DISABLED_PostMessage
|
| -#define MAYBE_Basic DISABLED_Basic
|
| -#define MAYBE_Embedded DISABLED_Embedded
|
| -#define MAYBE_Abort DISABLED_Abort
|
| -#else
|
| -#define MAYBE_PostMessage PostMessage
|
| -#define MAYBE_Basic Basic
|
| -#define MAYBE_Embedded Embedded
|
| -#define MAYBE_Abort Abort
|
| -#endif
|
| -
|
| -IN_PROC_BROWSER_TEST_F(MimeHandlerViewTest, MAYBE_PostMessage) {
|
| - RunTest("test_postmessage.html");
|
| -}
|
| -
|
| -IN_PROC_BROWSER_TEST_F(MimeHandlerViewTest, MAYBE_Basic) {
|
| - RunTest("testBasic.csv");
|
| -}
|
| -
|
| -IN_PROC_BROWSER_TEST_F(MimeHandlerViewTest, MAYBE_Embedded) {
|
| - RunTest("test_embedded.html");
|
| -}
|
| -
|
| -IN_PROC_BROWSER_TEST_F(MimeHandlerViewTest, MAYBE_Abort) {
|
| - RunTest("testAbort.csv");
|
| -}
|
|
|