chromium/chrome/browser/task_manager/task_manager_browsertest_util.cc

// Copyright 2016 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/task_manager/task_manager_browsertest_util.h"

#include <iomanip>
#include <string>
#include <string_view>

#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_timeouts.h"
#include "base/timer/timer.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/task_manager/task_manager_tester.h"
#include "chrome/grit/generated_resources.h"
#include "extensions/strings/grit/extensions_strings.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/table_model_observer.h"

namespace task_manager {
namespace browsertest_util {

namespace {

// Helper class to run a message loop until a TaskManagerTester is in an
// expected state. If timeout occurs, an ASCII version of the task manager's
// contents, along with a summary of the expected state, are dumped to test
// output, to assist debugging.
class ResourceChangeObserver {};

}  // namespace

void WaitForTaskManagerRows(size_t required_count,
                            const std::u16string& title_pattern) {}

void WaitForTaskManagerStatToExceed(const std::u16string& title_pattern,
                                    ColumnSpecifier column_getter,
                                    size_t min_column_value) {}

std::u16string MatchTab(std::string_view title) {}

std::u16string MatchAnyTab() {}

std::u16string MatchAboutBlankTab() {}

std::u16string MatchIncognitoTab(std::string_view title) {}

std::u16string MatchAnyIncognitoTab() {}

std::u16string MatchExtension(const char* title) {}

std::u16string MatchAnyExtension() {}

std::u16string MatchApp(const char* title) {}

std::u16string MatchAnyApp() {}

std::u16string MatchWebView(const char* title) {}

std::u16string MatchAnyWebView() {}

std::u16string MatchBackground(const char* title) {}

std::u16string MatchAnyBackground() {}

std::u16string MatchPrint(const char* title) {}

std::u16string MatchAnyPrint() {}

std::u16string MatchSubframe(const char* title) {}

std::u16string MatchAnySubframe() {}

std::u16string MatchUtility(const std::u16string& title) {}

std::u16string MatchAnyUtility() {}

std::u16string MatchBFCache(std::string_view title) {}

std::u16string MatchAnyBFCache() {}

std::u16string MatchPrerender(std::string_view title) {}

std::u16string MatchAnyPrerender() {}

std::u16string MatchFencedFrame(std::string_view title) {}

std::u16string MatchAnyFencedFrame() {}

std::u16string MatchIncognitoFencedFrame(std::string_view title) {}

std::u16string MatchAnyIncognitoFencedFrame() {}
}  // namespace browsertest_util
}  // namespace task_manager