Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: chrome/browser/download/download_resource_throttle_unittest.cc

Issue 2619603002: Remove android_java_ui as it is not used (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698