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 "jingle/notifier/listener/xmpp_push_client.h" | 5 #include "jingle/notifier/listener/xmpp_push_client.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "jingle/notifier/base/fake_base_task.h" | 10 #include "jingle/notifier/base/fake_base_task.h" |
11 #include "jingle/notifier/base/notifier_options.h" | 11 #include "jingle/notifier/base/notifier_options.h" |
12 #include "jingle/notifier/listener/push_client_observer.h" | 12 #include "jingle/notifier/listener/push_client_observer.h" |
13 #include "net/url_request/url_request_test_util.h" | 13 #include "net/url_request/url_request_test_util.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace notifier { | 17 namespace notifier { |
18 | 18 |
19 namespace { | 19 namespace { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 EXPECT_CALL(mock_observer_, OnNotificationsEnabled()); | 136 EXPECT_CALL(mock_observer_, OnNotificationsEnabled()); |
137 | 137 |
138 xmpp_push_client_->OnConnect(fake_base_task_.AsWeakPtr()); | 138 xmpp_push_client_->OnConnect(fake_base_task_.AsWeakPtr()); |
139 xmpp_push_client_->OnSubscribed(); | 139 xmpp_push_client_->OnSubscribed(); |
140 } | 140 } |
141 | 141 |
142 } // namespace | 142 } // namespace |
143 | 143 |
144 } // namespace notifier | 144 } // namespace notifier |
OLD | NEW |