Commit eb76985f authored by Sreeja Kamishetty's avatar Sreeja Kamishetty Committed by Commit Bot

Fix and Clear failing tests in bfcache.browser_test_filters

This CL disables the failing browser_tests with BackForwardCache and
updates the filter.

Bug: 1100315
Change-Id: I1f3af955b56b2d2eb91f793fe3c7c25826618ca9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2273499Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Commit-Queue: Sreeja Kamishetty <sreejakshetty@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797184}
parent e8dde670
......@@ -6,6 +6,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/extensions/extension_apitest.h"
......@@ -23,6 +24,7 @@
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
......@@ -50,6 +52,13 @@ bool IsExtensionProcessSharingAllowed() {
}
class ProcessManagementTest : public ExtensionBrowserTest {
public:
ProcessManagementTest() {
// TODO(https://crbug.com/1110891): Remove this once Extensions are
// supported with BackForwardCache.
disabled_feature_list_.InitWithFeatures({}, {features::kBackForwardCache});
}
private:
// This is needed for testing isolated apps, which are still experimental.
void SetUpCommandLine(base::CommandLine* command_line) override {
......@@ -62,6 +71,8 @@ class ProcessManagementTest : public ExtensionBrowserTest {
ExtensionBrowserTest::SetUpOnMainThread();
host_resolver()->AddRule("*", "127.0.0.1");
}
base::test::ScopedFeatureList disabled_feature_list_;
};
class ChromeWebStoreProcessTest : public ExtensionBrowserTest {
......
......@@ -16,6 +16,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/extensions/extension_browsertest.h"
......@@ -36,6 +37,7 @@
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_features.h"
#include "content/public/common/navigation_policy.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
......@@ -197,6 +199,9 @@ class ProcessManagerBrowserTest : public ExtensionBrowserTest {
public:
ProcessManagerBrowserTest() {
guest_view::GuestViewManager::set_factory_for_testing(&factory_);
// TODO(https://crbug.com/1110891): Remove this once Extensions are
// supported with BackForwardCache.
disabled_feature_list_.InitWithFeatures({}, {features::kBackForwardCache});
}
void SetUpOnMainThread() override {
......@@ -298,6 +303,7 @@ class ProcessManagerBrowserTest : public ExtensionBrowserTest {
private:
guest_view::TestGuestViewManagerFactory factory_;
std::vector<std::unique_ptr<TestExtensionDir>> temp_dirs_;
base::test::ScopedFeatureList disabled_feature_list_;
};
class DefaultProfileExtensionBrowserTest : public ExtensionBrowserTest {
......
# These tests currently fail when run with --enable-features=BackForwardCache
# Test are using a custom NavigateToURL function waiting for the old
# RenderFrameHost to be deleted. This won't happen.
-ProcessManagementTest.ExtensionProcessBalancing
-ProcessManagerBrowserTest.NoBackgroundPage
# Test goes back and forth in between a "preview" page and a "normal" page.
# When going back to the first page, it expected to be loaded as a "normal" page,
# but it isn't reloaded at all with the BackForwardCache.
-PreviewsLitePageRedirectServerBrowserTest.LitePagePreviewsNavigation/*
# Flaky on the bots, need to be investigated, see https://crbug.com/1010870.
# 16/100 failures.
# https://chromium-swarm.appspot.com/task?id=48104c14d9892f10
-BookmarksCommandManagerTest.All
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment