OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "sync/api/attachments/attachment_service_proxy_for_test.h" | |
6 | |
7 #include "base/message_loop/message_loop_proxy.h" | |
8 #include "sync/api/attachments/fake_attachment_service.h" | |
9 | |
10 namespace syncer { | |
11 | |
12 AttachmentServiceProxyForTestMember::AttachmentServiceProxyForTestMember( | |
13 scoped_ptr<AttachmentService> wrapped) | |
14 : wrapped_(wrapped.Pass()), wrapped_weak_ptr_factory_(wrapped_.get()) {} | |
15 | |
16 AttachmentServiceProxyForTestMember::~AttachmentServiceProxyForTestMember() {} | |
17 | |
18 AttachmentServiceProxyForTest::AttachmentServiceProxyForTest() | |
19 : AttachmentServiceProxyForTestMember( | |
20 FakeAttachmentService::CreateForTest()), | |
21 AttachmentServiceProxy(base::MessageLoopProxy::current(), | |
22 wrapped_weak_ptr_factory_.GetWeakPtr()) {} | |
tim (not reviewing)
2014/04/04 18:11:34
Yeah, wow. That's quite the conundrum. I had to go
maniscalco
2014/04/04 19:14:23
Fair enough. I'm convinced in this case the benef
maniscalco
2014/04/04 22:57:41
Good news and bad news.
Good news is I can use a
| |
23 | |
24 AttachmentServiceProxyForTest::~AttachmentServiceProxyForTest() {} | |
25 | |
26 } // namespace syncer | |
OLD | NEW |