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 "components/sync/api/attachments/attachment_service_proxy.h" | 5 #include "components/sync/model/attachments/attachment_service_proxy.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/memory/ref_counted_memory.h" | 11 #include "base/memory/ref_counted_memory.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Now that the wrapped object has been destroyed, call again and see that we | 171 // Now that the wrapped object has been destroyed, call again and see that we |
172 // don't crash and the count remains the same. | 172 // don't crash and the count remains the same. |
173 proxy->GetOrDownloadAttachments(AttachmentIdList(), callback_get_or_download); | 173 proxy->GetOrDownloadAttachments(AttachmentIdList(), callback_get_or_download); |
174 WaitForStubThread(); | 174 WaitForStubThread(); |
175 WaitForStubThread(); | 175 WaitForStubThread(); |
176 base::RunLoop().RunUntilIdle(); | 176 base::RunLoop().RunUntilIdle(); |
177 EXPECT_EQ(1, count_callback_get_or_download); | 177 EXPECT_EQ(1, count_callback_get_or_download); |
178 } | 178 } |
179 | 179 |
180 } // namespace syncer | 180 } // namespace syncer |
OLD | NEW |