Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: components/sync/model/attachments/attachment_service_proxy_unittest.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698