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

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

Issue 628123002: Replacing the OVERRIDE with override and FINAL with final in jingle (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 (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 "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "jingle/notifier/base/fake_base_task.h" 6 #include "jingle/notifier/base/fake_base_task.h"
7 #include "jingle/notifier/base/weak_xmpp_client.h" 7 #include "jingle/notifier/base/weak_xmpp_client.h"
8 #include "talk/xmpp/asyncsocket.h" 8 #include "talk/xmpp/asyncsocket.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // Extends WeakXmppClient to make jid() return a full jid, as required by 34 // Extends WeakXmppClient to make jid() return a full jid, as required by
35 // PushNotificationsSubscribeTask. 35 // PushNotificationsSubscribeTask.
36 class FakeWeakXmppClient : public notifier::WeakXmppClient { 36 class FakeWeakXmppClient : public notifier::WeakXmppClient {
37 public: 37 public:
38 explicit FakeWeakXmppClient(rtc::TaskParent* parent) 38 explicit FakeWeakXmppClient(rtc::TaskParent* parent)
39 : notifier::WeakXmppClient(parent), 39 : notifier::WeakXmppClient(parent),
40 jid_("test@example.com/testresource") {} 40 jid_("test@example.com/testresource") {}
41 41
42 virtual ~FakeWeakXmppClient() {} 42 virtual ~FakeWeakXmppClient() {}
43 43
44 virtual const buzz::Jid& jid() const OVERRIDE { 44 virtual const buzz::Jid& jid() const override {
45 return jid_; 45 return jid_;
46 } 46 }
47 47
48 private: 48 private:
49 buzz::Jid jid_; 49 buzz::Jid jid_;
50 }; 50 };
51 51
52 } // namespace 52 } // namespace
53 53
54 namespace notifier { 54 namespace notifier {
(...skipping 15 matching lines...) Expand all
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
« no previous file with comments | « jingle/glue/xmpp_client_socket_factory.h ('k') | jingle/notifier/base/gaia_token_pre_xmpp_auth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698