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

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

Issue 2662453008: [Sync] Fix sync lint errors/includes, update presubmit. (Closed)
Patch Set: Rebase Created 3 years, 10 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_downloader.h" 5 #include "components/sync/engine/attachments/fake_attachment_downloader.h"
6 6
7 #include <memory>
7 #include <utility> 8 #include <utility>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/bind.h" 11 #include "base/bind.h"
11 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 13 #include "base/run_loop.h"
13 #include "components/sync/model/attachments/attachment.h" 14 #include "components/sync/model/attachments/attachment.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 namespace syncer { 17 namespace syncer {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 53
53 TEST_F(FakeAttachmentDownloaderTest, DownloadAttachment) { 54 TEST_F(FakeAttachmentDownloaderTest, DownloadAttachment) {
54 AttachmentId attachment_id = AttachmentId::Create(0, 0); 55 AttachmentId attachment_id = AttachmentId::Create(0, 0);
55 downloader()->DownloadAttachment(attachment_id, download_callback()); 56 downloader()->DownloadAttachment(attachment_id, download_callback());
56 RunMessageLoop(); 57 RunMessageLoop();
57 EXPECT_EQ(1U, download_results().size()); 58 EXPECT_EQ(1U, download_results().size());
58 EXPECT_EQ(AttachmentDownloader::DOWNLOAD_SUCCESS, download_results()[0]); 59 EXPECT_EQ(AttachmentDownloader::DOWNLOAD_SUCCESS, download_results()[0]);
59 } 60 }
60 61
61 } // namespace syncer 62 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698