#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 { … };
}
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
}