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

Side by Side Diff: jingle/notifier/base/fake_base_task.cc

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Updated all sources from upstream Created 4 years 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 (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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698