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

Side by Side Diff: components/sync/engine/attachments/fake_attachment_downloader_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/engine/attachments/fake_attachment_downloader.h" 5 #include "components/sync/engine/attachments/fake_attachment_downloader.h"
6 6
7 #include <utility>
7 #include <vector> 8 #include <vector>
8 9
9 #include "base/bind.h" 10 #include "base/bind.h"
10 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 12 #include "base/run_loop.h"
12 #include "components/sync/api/attachments/attachment.h" 13 #include "components/sync/model/attachments/attachment.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 namespace syncer { 16 namespace syncer {
16 17
17 class FakeAttachmentDownloaderTest : public testing::Test { 18 class FakeAttachmentDownloaderTest : public testing::Test {
18 protected: 19 protected:
19 FakeAttachmentDownloaderTest() {} 20 FakeAttachmentDownloaderTest() {}
20 21
21 void SetUp() override {} 22 void SetUp() override {}
22 23
(...skipping 28 matching lines...) Expand all
51 52
52 TEST_F(FakeAttachmentDownloaderTest, DownloadAttachment) { 53 TEST_F(FakeAttachmentDownloaderTest, DownloadAttachment) {
53 AttachmentId attachment_id = AttachmentId::Create(0, 0); 54 AttachmentId attachment_id = AttachmentId::Create(0, 0);
54 downloader()->DownloadAttachment(attachment_id, download_callback()); 55 downloader()->DownloadAttachment(attachment_id, download_callback());
55 RunMessageLoop(); 56 RunMessageLoop();
56 EXPECT_EQ(1U, download_results().size()); 57 EXPECT_EQ(1U, download_results().size());
57 EXPECT_EQ(AttachmentDownloader::DOWNLOAD_SUCCESS, download_results()[0]); 58 EXPECT_EQ(AttachmentDownloader::DOWNLOAD_SUCCESS, download_results()[0]);
58 } 59 }
59 60
60 } // namespace syncer 61 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698