chromium/chrome/browser/media/webrtc/webrtc_browsertest_common.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/media/webrtc/webrtc_browsertest_common.h"

#include "base/files/file_util.h"
#include "base/functional/callback_forward.h"
#include "base/path_service.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/test/test_timeouts.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/common/chrome_paths.h"
#include "content/public/test/browser_test_utils.h"

namespace test {

// Relative to the chrome/test/data directory.
const base::FilePath::CharType kReferenceFilesDirName[] =);
const base::FilePath::CharType kReferenceFileName360p[] =);
const base::FilePath::CharType kReferenceFileName720p[] =);
const base::FilePath::CharType kYuvFileExtension[] =);
const base::FilePath::CharType kY4mFileExtension[] =);

// This message describes how to modify your .gclient to get the reference
// video files downloaded for you.
const char kAdviseOnGclientSolution[] =;

#if defined(THREAD_SANITIZER) || defined(MEMORY_SANITIZER) || \
    defined(ADDRESS_SANITIZER)
#if BUILDFLAG(IS_CHROMEOS_ASH)
const int kDefaultPollIntervalMsec = 2000;
#else
const int kDefaultPollIntervalMsec = 1000;
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)
#else
#if BUILDFLAG(IS_CHROMEOS_ASH)
const int kDefaultPollIntervalMsec = 500;
#else
const int kDefaultPollIntervalMsec =;
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)
#endif

bool IsErrorResult(const std::string& result) {}

base::FilePath GetReferenceFilesDir() {}

base::FilePath GetToolForPlatform(const std::string& tool_name) {}

bool HasReferenceFilesInCheckout() {}

bool HasYuvAndY4mFile(const base::FilePath::CharType* reference_file) {}

bool SleepInJavascript(content::WebContents* tab_contents, int timeout_msec) {}

bool PollingWaitUntil(const std::string& javascript,
                      const std::string& evaluates_to,
                      content::WebContents* tab_contents) {}

bool PollingWaitUntil(const std::string& javascript,
                      const std::string& evaluates_to,
                      content::WebContents* tab_contents,
                      int poll_interval_msec) {}

bool PollingWaitUntilClosureEvaluatesTrue(
    base::RepeatingCallback<bool()> closure,
    content::WebContents* tab_contents,
    base::TimeDelta poll_interval) {}

}  // namespace test