#include <set>
#include "base/stl_util.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/search/ntp_features.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
namespace {
void ExpectIsWebUiNtp(content::WebContents* tab) { … }
std::set<int> LiveRenderProcessHostIds() { … }
}
class WebUiNtpBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(WebUiNtpBrowserTest, VerifySiteInstance) { … }
IN_PROC_BROWSER_TEST_F(WebUiNtpBrowserTest, ProcessPerSite) { … }
IN_PROC_BROWSER_TEST_F(WebUiNtpBrowserTest, SpareRenderer) { … }