| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/web/web_state/crw_pass_kit_downloader.h" | 5 #import "ios/web/web_state/crw_pass_kit_downloader.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.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 #import "ios/web/test/web_test.h" | 12 #include "ios/web/public/test/web_test.h" |
| 13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
| 14 #include "net/http/http_response_headers.h" | 14 #include "net/http/http_response_headers.h" |
| 15 #include "net/url_request/test_url_fetcher_factory.h" | 15 #include "net/url_request/test_url_fetcher_factory.h" |
| 16 #include "net/url_request/url_fetcher_delegate.h" | 16 #include "net/url_request/url_fetcher_delegate.h" |
| 17 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
| 18 #include "testing/gtest_mac.h" | 18 #include "testing/gtest_mac.h" |
| 19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 20 | 20 |
| 21 using net::HttpResponseHeaders; | 21 using net::HttpResponseHeaders; |
| 22 using net::URLRequestStatus; | 22 using net::URLRequestStatus; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 ASSERT_TRUE(fetcher); | 148 ASSERT_TRUE(fetcher); |
| 149 ASSERT_EQ(test_url, fetcher->GetOriginalURL()); | 149 ASSERT_EQ(test_url, fetcher->GetOriginalURL()); |
| 150 SetUpFetcher(fetcher, URLRequestStatus(), 200, kPassKitMimeType); | 150 SetUpFetcher(fetcher, URLRequestStatus(), 200, kPassKitMimeType); |
| 151 fetcher->delegate()->OnURLFetchComplete(fetcher); | 151 fetcher->delegate()->OnURLFetchComplete(fetcher); |
| 152 | 152 |
| 153 EXPECT_FALSE([shared_app isNetworkActivityIndicatorVisible]); | 153 EXPECT_FALSE([shared_app isNetworkActivityIndicatorVisible]); |
| 154 EXPECT_FALSE(completion_handler_success_); | 154 EXPECT_FALSE(completion_handler_success_); |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace | 157 } // namespace |
| OLD | NEW |