#include "chrome/browser/ui/webui/whats_new/whats_new_fetcher.h"
#include "base/strings/stringprintf.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/global_features.h"
#include "chrome/common/chrome_version.h"
#include "chrome/test/interaction/interactive_browser_test.h"
#include "components/user_education/common/user_education_features.h"
#include "components/user_education/webui/whats_new_registry.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
BrowserCommand;
BASE_FEATURE(…);
BASE_FEATURE(…);
BASE_FEATURE(…);
BASE_FEATURE(…);
BASE_FEATURE(…);
}
class WhatsNewFetcherBrowserTest : public InteractiveBrowserTest { … };
IN_PROC_BROWSER_TEST_F(WhatsNewFetcherBrowserTest, GetV2ServerURL) { … }
IN_PROC_BROWSER_TEST_F(WhatsNewFetcherBrowserTest,
GetV2ServerURLForRenderNoFeatures) { … }
IN_PROC_BROWSER_TEST_F(WhatsNewFetcherBrowserTest,
GetV2ServerStagingURLForRenderNoFeatures) { … }
IN_PROC_BROWSER_TEST_F(WhatsNewFetcherBrowserTest,
GetV2ServerURLForRenderWithOneEnabled) { … }
IN_PROC_BROWSER_TEST_F(WhatsNewFetcherBrowserTest,
GetV2ServerURLForRenderWithMultipleEnabled) { … }
IN_PROC_BROWSER_TEST_F(WhatsNewFetcherBrowserTest,
GetV2ServerURLForRenderEnabledAndRolled) { … }