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

Side by Side Diff: jingle/notifier/communicator/single_login_attempt_unittest.cc

Issue 12518036: net: move host_resolver files from net/base to net/dns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
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 "jingle/notifier/communicator/single_login_attempt.h" 5 #include "jingle/notifier/communicator/single_login_attempt.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "jingle/notifier/base/const_communicator.h" 12 #include "jingle/notifier/base/const_communicator.h"
13 #include "jingle/notifier/base/fake_base_task.h" 13 #include "jingle/notifier/base/fake_base_task.h"
14 #include "jingle/notifier/communicator/login_settings.h" 14 #include "jingle/notifier/communicator/login_settings.h"
15 #include "net/base/mock_host_resolver.h" 15 #include "net/dns/mock_host_resolver.h"
16 #include "net/url_request/url_request_test_util.h" 16 #include "net/url_request/url_request_test_util.h"
17 #include "talk/xmllite/xmlelement.h" 17 #include "talk/xmllite/xmlelement.h"
18 #include "talk/xmpp/constants.h" 18 #include "talk/xmpp/constants.h"
19 #include "talk/xmpp/xmppengine.h" 19 #include "talk/xmpp/xmppengine.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 namespace buzz { 22 namespace buzz {
23 class XmppTaskParentInterface; 23 class XmppTaskParentInterface;
24 } // namespace buzz 24 } // namespace buzz
25 25
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // Fire 'Unauthorized' errors and make sure the delegate gets the 245 // Fire 'Unauthorized' errors and make sure the delegate gets the
246 // OnCredentialsRejected() event. 246 // OnCredentialsRejected() event.
247 TEST_F(SingleLoginAttemptTest, CredentialsRejected) { 247 TEST_F(SingleLoginAttemptTest, CredentialsRejected) {
248 attempt_.OnError(buzz::XmppEngine::ERROR_UNAUTHORIZED, 0, NULL); 248 attempt_.OnError(buzz::XmppEngine::ERROR_UNAUTHORIZED, 0, NULL);
249 EXPECT_EQ(CREDENTIALS_REJECTED, fake_delegate_.state()); 249 EXPECT_EQ(CREDENTIALS_REJECTED, fake_delegate_.state());
250 } 250 }
251 251
252 } // namespace 252 } // namespace
253 253
254 } // namespace notifier 254 } // namespace notifier
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698