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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/file_util.h" | |
7 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/files/file_util.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
14 #include "components/component_updater/crx_downloader.h" | 14 #include "components/component_updater/crx_downloader.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
17 #include "content/test/net/url_request_prepackaged_interceptor.h" | 17 #include "content/test/net/url_request_prepackaged_interceptor.h" |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 374 |
375 EXPECT_EQ(0, interceptor.GetHitCount()); | 375 EXPECT_EQ(0, interceptor.GetHitCount()); |
376 | 376 |
377 EXPECT_EQ(1, num_download_complete_calls_); | 377 EXPECT_EQ(1, num_download_complete_calls_); |
378 EXPECT_EQ(kExpectedContext, crx_context_); | 378 EXPECT_EQ(kExpectedContext, crx_context_); |
379 EXPECT_NE(0, download_complete_result_.error); | 379 EXPECT_NE(0, download_complete_result_.error); |
380 EXPECT_TRUE(download_complete_result_.response.empty()); | 380 EXPECT_TRUE(download_complete_result_.response.empty()); |
381 } | 381 } |
382 | 382 |
383 } // namespace component_updater | 383 } // namespace component_updater |
OLD | NEW |