#include "chrome/browser/extensions/api/downloads/downloads_api.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/download/download_core_service_factory.h"
#include "chrome/browser/download/download_core_service_impl.h"
#include "chrome/browser/download/download_history.h"
#include "chrome/browser/extensions/extension_api_unittest.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/test/mock_download_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
HistoryService;
MockDownloadManager;
namespace extensions {
namespace {
class TestDownloadCoreService : public DownloadCoreServiceImpl { … };
}
class DownloadsApiUnitTest : public ExtensionApiUnittest { … };
std::unique_ptr<KeyedService>
DownloadsApiUnitTest::TestingDownloadCoreServiceFactory(
content::BrowserContext* browser_context) { … }
TEST_F(DownloadsApiUnitTest, ParseSearchQuery) { … }
}