chromium/chrome/browser/resource_coordinator/tab_load_tracker_test_support.cc

// Copyright 2018 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/resource_coordinator/tab_load_tracker_test_support.h"

#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "build/build_config.h"

#if !BUILDFLAG(IS_ANDROID)
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#endif

namespace resource_coordinator {

namespace {

LoadingState;

enum class WaitForEvent {};

class WaitForLoadingStateHelper : public TabLoadTracker::Observer {};

}  // namespace

bool WaitForTransitionToLoadingState(content::WebContents* contents,
                                     LoadingState loading_state) {}

bool WaitForTransitionToUnloaded(content::WebContents* contents) {}

bool WaitForTransitionToLoading(content::WebContents* contents) {}

bool WaitForTransitionToLoaded(content::WebContents* contents) {}

bool WaitUntilNoLongerTracked(content::WebContents* contents) {}

#if !BUILDFLAG(IS_ANDROID)
bool WaitForTransitionToLoadingState(TabStripModel* tab_strip,
                                     LoadingState loading_state) {}

bool WaitForTransitionToUnloaded(TabStripModel* tab_strip) {}

bool WaitForTransitionToLoading(TabStripModel* tab_strip) {}

bool WaitForTransitionToLoaded(TabStripModel* tab_strip) {}
#endif  // !BUILDFLAG(IS_ANDROID)

}  // namespace resource_coordinator