OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "jingle/notifier/base/fake_base_task.h" | 8 #include "jingle/notifier/base/fake_base_task.h" |
9 #include "jingle/notifier/base/weak_xmpp_client.h" | 9 #include "jingle/notifier/base/weak_xmpp_client.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "webrtc/libjingle/xmpp/asyncsocket.h" | 11 #include "third_party/libjingle_xmpp/xmpp/asyncsocket.h" |
12 | 12 |
13 namespace notifier { | 13 namespace notifier { |
14 | 14 |
15 using ::testing::_; | 15 using ::testing::_; |
16 using ::testing::Return; | 16 using ::testing::Return; |
17 | 17 |
18 class MockAsyncSocket : public buzz::AsyncSocket { | 18 class MockAsyncSocket : public buzz::AsyncSocket { |
19 public: | 19 public: |
20 virtual ~MockAsyncSocket() {} | 20 virtual ~MockAsyncSocket() {} |
21 | 21 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 base_task_ = weak_xmpp_client->AsWeakPtr(); | 70 base_task_ = weak_xmpp_client->AsWeakPtr(); |
71 } | 71 } |
72 | 72 |
73 FakeBaseTask::~FakeBaseTask() {} | 73 FakeBaseTask::~FakeBaseTask() {} |
74 | 74 |
75 base::WeakPtr<buzz::XmppTaskParentInterface> FakeBaseTask::AsWeakPtr() { | 75 base::WeakPtr<buzz::XmppTaskParentInterface> FakeBaseTask::AsWeakPtr() { |
76 return base_task_; | 76 return base_task_; |
77 } | 77 } |
78 | 78 |
79 } // namespace notifier | 79 } // namespace notifier |
OLD | NEW |