blob: 7804268b1fb792fbd008a751a7ba41d2ef817277 [file] [log] [blame]
// Copyright 2017 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.
#ifndef CHROME_BROWSER_UI_SEARCH_NTP_TEST_UTILS_H_
#define CHROME_BROWSER_UI_SEARCH_NTP_TEST_UTILS_H_
#include <string>
class GURL;
class Profile;
namespace ntp_test_utils {
void SetUserSelectedDefaultSearchProvider(Profile* profile,
const std::string& base_url,
const std::string& ntp_url);
// Get the URL that WebContents->GetVisibleURL() will return after navigating to
// chrome://newtab/. While this should typically be chrome://newtab/, in a test
// environment where there is no network connection, it may be
// chrome://new-tab-page-third-party.
GURL GetFinalNtpUrl(Profile* profile);
} // namespace ntp_test_utils
#endif // CHROME_BROWSER_UI_SEARCH_NTP_TEST_UTILS_H_