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/bind_helpers.h" |
6 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
7 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | 12 #include "base/path_service.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "components/component_updater/crx_downloader.h" | 14 #include "components/component_updater/crx_downloader.h" |
14 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
15 #include "net/url_request/test_url_request_interceptor.h" | 16 #include "net/url_request/test_url_request_interceptor.h" |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 369 |
369 EXPECT_EQ(0, get_interceptor_->GetHitCount()); | 370 EXPECT_EQ(0, get_interceptor_->GetHitCount()); |
370 | 371 |
371 EXPECT_EQ(1, num_download_complete_calls_); | 372 EXPECT_EQ(1, num_download_complete_calls_); |
372 EXPECT_EQ(kExpectedContext, crx_context_); | 373 EXPECT_EQ(kExpectedContext, crx_context_); |
373 EXPECT_NE(0, download_complete_result_.error); | 374 EXPECT_NE(0, download_complete_result_.error); |
374 EXPECT_TRUE(download_complete_result_.response.empty()); | 375 EXPECT_TRUE(download_complete_result_.response.empty()); |
375 } | 376 } |
376 | 377 |
377 } // namespace component_updater | 378 } // namespace component_updater |
OLD | NEW |