| Index: chrome/browser/download/download_resource_throttle_unittest.cc
|
| diff --git a/chrome/browser/download/download_resource_throttle_unittest.cc b/chrome/browser/download/download_resource_throttle_unittest.cc
|
| index 03dcc3069d3357a612dcff121ddebd27f0428a41..84286444c4effcdb75cf87891cd85982d713896f 100644
|
| --- a/chrome/browser/download/download_resource_throttle_unittest.cc
|
| +++ b/chrome/browser/download/download_resource_throttle_unittest.cc
|
| @@ -18,7 +18,7 @@
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| -#if BUILDFLAG(ANDROID_JAVA_UI)
|
| +#if defined(OS_ANDROID)
|
| #include "chrome/browser/android/download/mock_download_controller.h"
|
| #endif
|
|
|
| @@ -63,7 +63,7 @@ class DownloadResourceThrottleTest : public ChromeRenderViewHostTestHarness {
|
| ChromeRenderViewHostTestHarness::SetUp();
|
| web_contents()->SetDelegate(&delegate_);
|
| run_loop_.reset(new base::RunLoop());
|
| -#if BUILDFLAG(ANDROID_JAVA_UI)
|
| +#if defined(OS_ANDROID)
|
| DownloadControllerBase::SetDownloadControllerBase(&download_controller_);
|
| #endif
|
| }
|
| @@ -71,7 +71,7 @@ class DownloadResourceThrottleTest : public ChromeRenderViewHostTestHarness {
|
| void TearDown() override {
|
| content::BrowserThread::DeleteSoon(content::BrowserThread::IO, FROM_HERE,
|
| throttle_);
|
| -#if BUILDFLAG(ANDROID_JAVA_UI)
|
| +#if defined(OS_ANDROID)
|
| DownloadControllerBase::SetDownloadControllerBase(nullptr);
|
| #endif
|
| ChromeRenderViewHostTestHarness::TearDown();
|
| @@ -104,7 +104,7 @@ class DownloadResourceThrottleTest : public ChromeRenderViewHostTestHarness {
|
| scoped_refptr<DownloadRequestLimiter> limiter_;
|
| ::testing::NiceMock<MockResourceThrottleDelegate> resource_throttle_delegate_;
|
| std::unique_ptr<base::RunLoop> run_loop_;
|
| -#if BUILDFLAG(ANDROID_JAVA_UI)
|
| +#if defined(OS_ANDROID)
|
| chrome::android::MockDownloadController download_controller_;
|
| #endif
|
| };
|
| @@ -115,7 +115,7 @@ TEST_F(DownloadResourceThrottleTest, StartDownloadThrottle_Basic) {
|
| StartThrottle();
|
| }
|
|
|
| -#if BUILDFLAG(ANDROID_JAVA_UI)
|
| +#if defined(OS_ANDROID)
|
| TEST_F(DownloadResourceThrottleTest, DownloadWithFailedFileAcecssRequest) {
|
| DownloadControllerBase::Get()
|
| ->SetApproveFileAccessRequestForTesting(false);
|
|
|