OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/bind_helpers.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
13 #include "base/path_service.h" | 14 #include "base/path_service.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/test/sequenced_worker_pool_owner.h" | 16 #include "base/test/sequenced_worker_pool_owner.h" |
16 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
17 #include "base/values.h" | 18 #include "base/values.h" |
18 #include "base/version.h" | 19 #include "base/version.h" |
19 #include "components/update_client/crx_update_item.h" | 20 #include "components/update_client/crx_update_item.h" |
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2115 | 2116 |
2116 std::vector<std::string> empty_id_list; | 2117 std::vector<std::string> empty_id_list; |
2117 base::RunLoop runloop; | 2118 base::RunLoop runloop; |
2118 update_client->Update( | 2119 update_client->Update( |
2119 empty_id_list, base::Bind(&DataCallbackFake::Callback), | 2120 empty_id_list, base::Bind(&DataCallbackFake::Callback), |
2120 base::Bind(&CompletionCallbackFake::Callback, runloop.QuitClosure())); | 2121 base::Bind(&CompletionCallbackFake::Callback, runloop.QuitClosure())); |
2121 runloop.Run(); | 2122 runloop.Run(); |
2122 } | 2123 } |
2123 | 2124 |
2124 } // namespace update_client | 2125 } // namespace update_client |
OLD | NEW |