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" | 5 #include "base/basictypes.h" |
6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 #include "base/file_util.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/version.h" | 12 #include "base/version.h" |
13 #include "chrome/browser/component_updater/test/component_updater_service_unitte
st.h" | 13 #include "chrome/browser/component_updater/test/component_updater_service_unitte
st.h" |
14 #include "chrome/browser/component_updater/test/url_request_post_interceptor.h" | 14 #include "chrome/browser/component_updater/test/url_request_post_interceptor.h" |
15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
16 #include "components/component_updater/crx_update_item.h" | 16 #include "components/component_updater/crx_update_item.h" |
17 #include "components/component_updater/update_checker.h" | 17 #include "components/component_updater/update_checker.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 << post_interceptor_->GetRequestsAsString(); | 227 << post_interceptor_->GetRequestsAsString(); |
228 EXPECT_EQ(1, post_interceptor_->GetCount()) | 228 EXPECT_EQ(1, post_interceptor_->GetCount()) |
229 << post_interceptor_->GetRequestsAsString(); | 229 << post_interceptor_->GetRequestsAsString(); |
230 | 230 |
231 EXPECT_NE(0, error_); | 231 EXPECT_NE(0, error_); |
232 EXPECT_STREQ("network error", error_message_.c_str()); | 232 EXPECT_STREQ("network error", error_message_.c_str()); |
233 EXPECT_EQ(0ul, results_.list.size()); | 233 EXPECT_EQ(0ul, results_.list.size()); |
234 } | 234 } |
235 | 235 |
236 } // namespace component_updater | 236 } // namespace component_updater |
OLD | NEW |