| 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 #include "base/basictypes.h" | |
| 6 #include "base/bind.h" | 5 #include "base/bind.h" |
| 7 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
| 8 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 9 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "base/version.h" | 15 #include "base/version.h" |
| 16 #include "components/component_updater/crx_update_item.h" | 16 #include "components/component_updater/crx_update_item.h" |
| 17 #include "components/component_updater/test/test_configurator.h" | 17 #include "components/component_updater/test/test_configurator.h" |
| 18 #include "components/component_updater/test/url_request_post_interceptor.h" | 18 #include "components/component_updater/test/url_request_post_interceptor.h" |
| 19 #include "components/component_updater/update_checker.h" | 19 #include "components/component_updater/update_checker.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 EXPECT_EQ(1, post_interceptor_->GetCount()) | 231 EXPECT_EQ(1, post_interceptor_->GetCount()) |
| 232 << post_interceptor_->GetRequestsAsString(); | 232 << post_interceptor_->GetRequestsAsString(); |
| 233 | 233 |
| 234 EXPECT_EQ(config_->UpdateUrl().front(), original_url_); | 234 EXPECT_EQ(config_->UpdateUrl().front(), original_url_); |
| 235 EXPECT_EQ(403, error_); | 235 EXPECT_EQ(403, error_); |
| 236 EXPECT_STREQ("network error", error_message_.c_str()); | 236 EXPECT_STREQ("network error", error_message_.c_str()); |
| 237 EXPECT_EQ(0ul, results_.list.size()); | 237 EXPECT_EQ(0ul, results_.list.size()); |
| 238 } | 238 } |
| 239 | 239 |
| 240 } // namespace component_updater | 240 } // namespace component_updater |
| OLD | NEW |