diff options
author | maniscalco@chromium.org <maniscalco@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 18:19:18 +0000 |
---|---|---|
committer | maniscalco@chromium.org <maniscalco@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-30 18:19:18 +0000 |
commit | ba2e7a3372c172faad6e1de50465fe091e8fe426 (patch) | |
tree | 1d8b267843cd5aaab373dacd0af5c31887294873 /sync | |
parent | 0d1c41751b3edc6455e6a8f4141a088f7182e8dc (diff) | |
download | chromium_src-ba2e7a3372c172faad6e1de50465fe091e8fe426.zip chromium_src-ba2e7a3372c172faad6e1de50465fe091e8fe426.tar.gz chromium_src-ba2e7a3372c172faad6e1de50465fe091e8fe426.tar.bz2 |
Drop TestSimpleTaskRunner from FakeAttachmentService.
Use MessageLoopProxy::current() instead of TestSimpleTaskRunner allowing
us to drop sync_api's dependency on test_support_base.
BUG=
Review URL: https://codereview.chromium.org/258043004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r-- | sync/api/attachments/fake_attachment_service.cc | 4 | ||||
-rw-r--r-- | sync/sync_api.gypi | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/sync/api/attachments/fake_attachment_service.cc b/sync/api/attachments/fake_attachment_service.cc index 8e9e867..b9eb88e 100644 --- a/sync/api/attachments/fake_attachment_service.cc +++ b/sync/api/attachments/fake_attachment_service.cc @@ -6,7 +6,6 @@ #include "base/bind.h" #include "base/message_loop/message_loop.h" -#include "base/test/test_simple_task_runner.h" #include "sync/api/attachments/attachment.h" #include "sync/api/attachments/fake_attachment_store.h" @@ -26,8 +25,7 @@ FakeAttachmentService::~FakeAttachmentService() { // Static. scoped_ptr<syncer::AttachmentService> FakeAttachmentService::CreateForTest() { scoped_ptr<syncer::AttachmentStore> attachment_store( - new syncer::FakeAttachmentStore(scoped_refptr<base::SequencedTaskRunner>( - new base::TestSimpleTaskRunner))); + new syncer::FakeAttachmentStore(base::MessageLoopProxy::current())); scoped_ptr<syncer::AttachmentService> attachment_service( new syncer::FakeAttachmentService(attachment_store.Pass())); return attachment_service.Pass(); diff --git a/sync/sync_api.gypi b/sync/sync_api.gypi index 8e5b911..8cee5bd 100644 --- a/sync/sync_api.gypi +++ b/sync/sync_api.gypi @@ -11,7 +11,6 @@ ], 'dependencies': [ '../base/base.gyp:base', - '../base/base.gyp:test_support_base', ], 'sources': [ 'api/attachments/attachment.cc', |