#include <stddef.h>
#include <string>
#include <vector>
#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/strings/string_util.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/test/chromedriver/chrome/chrome_finder.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
bool PathIn(const std::vector<base::FilePath>& list,
const base::FilePath& path) { … }
void AssertFound(const base::FilePath& found,
const std::vector<base::FilePath>& existing_paths,
const std::vector<base::FilePath>& rel_paths,
const std::vector<base::FilePath>& locations) { … }
}
TEST(ChromeFinderTest, FindExeFound) { … }
TEST(ChromeFinderTest, FindExeShouldGoInOrder) { … }
TEST(ChromeFinderTest, FindExeShouldPreferExeNameOverDir) { … }
TEST(ChromeFinderTest, FindExeNotFound) { … }
TEST(ChromeFinderTest, NoCrash) { … }
TEST(ChromeFinderTest, FindBrowserSearchesForChrome) { … }
TEST(ChromeFinderTest, FindBrowserSearchesForHeadlessShell) { … }
TEST(ChromeFinderTest, FindBrowserDoesNotSearchForUnsupportedBrowser) { … }
TEST(ChromeFinderTest, FindBrowserDoesNotSearchForChrome) { … }
TEST(ChromeFinderTest, FindBrowserDoesNotSearchForHeadlessShell) { … }