#include "chrome/browser/net/chrome_mojo_proxy_resolver_factory.h"
#include <stdint.h>
#include <optional>
#include <vector>
#include "base/process/process.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/test/bind.h"
#include "base/time/time.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/service_process_host.h"
#include "content/public/test/browser_test.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/proxy_resolver/public/mojom/proxy_resolver.mojom.h"
namespace {
constexpr base::TimeDelta kServiceShutdownTimeout = …;
constexpr char kPacScript[] = …;
class DumbProxyResolverFactoryRequestClient
: public proxy_resolver::mojom::ProxyResolverFactoryRequestClient { … };
ChromeMojoProxyResolverFactoryBrowserTest;
class ProxyResolverProcessObserver
: public content::ServiceProcessHost::Observer { … };
IN_PROC_BROWSER_TEST_F(ChromeMojoProxyResolverFactoryBrowserTest,
ServiceLifecycle) { … }
IN_PROC_BROWSER_TEST_F(ChromeMojoProxyResolverFactoryBrowserTest,
DestroyFactory) { … }
IN_PROC_BROWSER_TEST_F(ChromeMojoProxyResolverFactoryBrowserTest,
DestroyAndCreateService) { … }
}