chromium/chrome/test/base/profile_destruction_waiter.h

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

#ifndef CHROME_TEST_BASE_PROFILE_DESTRUCTION_WAITER_H_
#define CHROME_TEST_BASE_PROFILE_DESTRUCTION_WAITER_H_

#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/scoped_observation.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_observer.h"

class Profile;

// Allows to wait until a profile is destroyed in tests.
class ProfileDestructionWaiter : public ProfileObserver {};

#endif  // CHROME_TEST_BASE_PROFILE_DESTRUCTION_WAITER_H_