#include "content/browser/background_fetch/background_fetch_delegate_proxy.h"
#include <set>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "content/browser/background_fetch/background_fetch_test_base.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/background_fetch_delegate.h"
#include "content/public/browser/background_fetch_description.h"
#include "content/public/browser/background_fetch_response.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/service_worker_context.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/background_fetch/background_fetch.mojom.h"
namespace content {
namespace {
const char kExampleUniqueId[] = …;
const char kExampleUniqueId2[] = …;
const int kIconDisplaySize = …;
class FakeBackgroundFetchDelegate : public BackgroundFetchDelegate { … };
class FakeTestBrowserContext : public TestBrowserContext { … };
class FakeController : public BackgroundFetchDelegateProxy::Controller { … };
class BackgroundFetchDelegateProxyTest : public BackgroundFetchTestBase { … };
scoped_refptr<BackgroundFetchRequestInfo> CreateRequestInfo(
int request_index,
blink::mojom::FetchAPIRequestPtr fetch_request) { … }
}
TEST_F(BackgroundFetchDelegateProxyTest, StartRequest) { … }
TEST_F(BackgroundFetchDelegateProxyTest, StartRequest_NotCompleted) { … }
TEST_F(BackgroundFetchDelegateProxyTest, Abort) { … }
TEST_F(BackgroundFetchDelegateProxyTest, GetIconDisplaySize) { … }
TEST_F(BackgroundFetchDelegateProxyTest, UpdateUI) { … }
TEST_F(BackgroundFetchDelegateProxyTest, MultipleClients) { … }
}