| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/chrome/browser/ui/downloads/download_manager_controller.h" | 5 #import "ios/chrome/browser/ui/downloads/download_manager_controller.h" |
| 6 | 6 |
| 7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #import "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #import "ios/chrome/browser/storekit_launcher.h" | 13 #import "ios/chrome/browser/store_kit/store_kit_launcher.h" |
| 14 #include "ios/web/public/test/test_web_thread.h" | 14 #include "ios/web/public/test/test_web_thread.h" |
| 15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 16 #include "net/http/http_response_headers.h" | 16 #include "net/http/http_response_headers.h" |
| 17 #include "net/url_request/test_url_fetcher_factory.h" | 17 #include "net/url_request/test_url_fetcher_factory.h" |
| 18 #include "net/url_request/url_fetcher_delegate.h" | 18 #include "net/url_request/url_fetcher_delegate.h" |
| 19 #include "net/url_request/url_request_test_util.h" | 19 #include "net/url_request/url_request_test_util.h" |
| 20 #include "testing/gtest_mac.h" | 20 #include "testing/gtest_mac.h" |
| 21 #include "testing/platform_test.h" | 21 #include "testing/platform_test.h" |
| 22 | 22 |
| 23 using net::HttpResponseHeaders; | 23 using net::HttpResponseHeaders; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 EXPECT_FALSE( | 146 EXPECT_FALSE( |
| 147 [[UIApplication sharedApplication] isNetworkActivityIndicatorVisible]); | 147 [[UIApplication sharedApplication] isNetworkActivityIndicatorVisible]); |
| 148 | 148 |
| 149 EXPECT_TRUE([_controller fileTypeLabel].hidden); | 149 EXPECT_TRUE([_controller fileTypeLabel].hidden); |
| 150 EXPECT_FALSE([_controller downloadButton].hidden); | 150 EXPECT_FALSE([_controller downloadButton].hidden); |
| 151 EXPECT_FALSE([_controller errorIcon].hidden); | 151 EXPECT_FALSE([_controller errorIcon].hidden); |
| 152 EXPECT_FALSE([_controller errorOrSizeLabel].hidden); | 152 EXPECT_FALSE([_controller errorOrSizeLabel].hidden); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace | 155 } // namespace |
| OLD | NEW |