| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "components/update_client/crx_downloader.h" | 5 #include "components/update_client/crx_downloader.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
| 19 #include "net/url_request/test_url_request_interceptor.h" | 19 #include "net/url_request/test_url_request_interceptor.h" |
| 20 #include "net/url_request/url_request_test_util.h" | 20 #include "net/url_request/url_request_test_util.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 using base::ContentsEqual; | 23 using base::ContentsEqual; |
| 24 | 24 |
| 25 namespace update_client { | 25 namespace update_client { |
| 26 | 26 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 | 424 |
| 425 EXPECT_EQ(0, get_interceptor_->GetHitCount()); | 425 EXPECT_EQ(0, get_interceptor_->GetHitCount()); |
| 426 | 426 |
| 427 EXPECT_EQ(1, num_download_complete_calls_); | 427 EXPECT_EQ(1, num_download_complete_calls_); |
| 428 EXPECT_EQ(kExpectedContext, crx_context_); | 428 EXPECT_EQ(kExpectedContext, crx_context_); |
| 429 EXPECT_NE(0, download_complete_result_.error); | 429 EXPECT_NE(0, download_complete_result_.error); |
| 430 EXPECT_TRUE(download_complete_result_.response.empty()); | 430 EXPECT_TRUE(download_complete_result_.response.empty()); |
| 431 } | 431 } |
| 432 | 432 |
| 433 } // namespace update_client | 433 } // namespace update_client |
| OLD | NEW |