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

Side by Side Diff: components/sync/engine/attachments/fake_attachment_uploader_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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/engine/attachments/fake_attachment_uploader.h" 5 #include "components/sync/engine/attachments/fake_attachment_uploader.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 11 #include "base/run_loop.h"
11 #include "components/sync/model/attachments/attachment.h" 12 #include "components/sync/model/attachments/attachment.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace syncer { 15 namespace syncer {
15 16
16 namespace { 17 namespace {
17 18
18 const char kAttachmentData[] = "some data"; 19 const char kAttachmentData[] = "some data";
19 20
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 Attachment attachment2 = Attachment::Create(some_data); 52 Attachment attachment2 = Attachment::Create(some_data);
52 Attachment attachment3 = Attachment::Create(some_data); 53 Attachment attachment3 = Attachment::Create(some_data);
53 uploader.UploadAttachment(attachment1, upload_callback); 54 uploader.UploadAttachment(attachment1, upload_callback);
54 uploader.UploadAttachment(attachment2, upload_callback); 55 uploader.UploadAttachment(attachment2, upload_callback);
55 uploader.UploadAttachment(attachment3, upload_callback); 56 uploader.UploadAttachment(attachment3, upload_callback);
56 base::RunLoop().RunUntilIdle(); 57 base::RunLoop().RunUntilIdle();
57 EXPECT_EQ(upload_callback_count, 3); 58 EXPECT_EQ(upload_callback_count, 3);
58 } 59 }
59 60
60 } // namespace syncer 61 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698