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

Side by Side Diff: sync/internal_api/attachments/fake_attachment_downloader_unittest.cc

Issue 629733002: replace OVERRIDE and FINAL with override and final in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 "sync/internal_api/public/attachments/fake_attachment_downloader.h" 5 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "sync/api/attachments/attachment.h" 10 #include "sync/api/attachments/attachment.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 14
15 class FakeAttachmentDownloaderTest : public testing::Test { 15 class FakeAttachmentDownloaderTest : public testing::Test {
16 protected: 16 protected:
17 FakeAttachmentDownloaderTest() {} 17 FakeAttachmentDownloaderTest() {}
18 18
19 virtual void SetUp() OVERRIDE {} 19 virtual void SetUp() override {}
20 20
21 virtual void TearDown() OVERRIDE {} 21 virtual void TearDown() override {}
22 22
23 AttachmentDownloader* downloader() { 23 AttachmentDownloader* downloader() {
24 return &attachment_downloader_; 24 return &attachment_downloader_;
25 } 25 }
26 26
27 AttachmentDownloader::DownloadCallback download_callback() { 27 AttachmentDownloader::DownloadCallback download_callback() {
28 return base::Bind(&FakeAttachmentDownloaderTest::DownloadDone, 28 return base::Bind(&FakeAttachmentDownloaderTest::DownloadDone,
29 base::Unretained(this)); 29 base::Unretained(this));
30 } 30 }
31 31
(...skipping 19 matching lines...) Expand all
51 51
52 TEST_F(FakeAttachmentDownloaderTest, DownloadAttachment) { 52 TEST_F(FakeAttachmentDownloaderTest, DownloadAttachment) {
53 AttachmentId attachment_id = AttachmentId::Create(); 53 AttachmentId attachment_id = AttachmentId::Create();
54 downloader()->DownloadAttachment(attachment_id, download_callback()); 54 downloader()->DownloadAttachment(attachment_id, download_callback());
55 RunMessageLoop(); 55 RunMessageLoop();
56 EXPECT_EQ(1U, download_results().size()); 56 EXPECT_EQ(1U, download_results().size());
57 EXPECT_EQ(AttachmentDownloader::DOWNLOAD_SUCCESS, download_results()[0]); 57 EXPECT_EQ(AttachmentDownloader::DOWNLOAD_SUCCESS, download_results()[0]);
58 } 58 }
59 59
60 } // namespace syncer 60 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/attachments/attachment_uploader_impl_unittest.cc ('k') | sync/internal_api/debug_info_event_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698