| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  *  Copyright 2012 The WebRTC Project Authors. All rights reserved. |    2  *  Copyright 2012 The WebRTC Project Authors. All rights reserved. | 
|    3  * |    3  * | 
|    4  *  Use of this source code is governed by a BSD-style license |    4  *  Use of this source code is governed by a BSD-style license | 
|    5  *  that can be found in the LICENSE file in the root of the source |    5  *  that can be found in the LICENSE file in the root of the source | 
|    6  *  tree. An additional intellectual property rights grant can be found |    6  *  tree. An additional intellectual property rights grant can be found | 
|    7  *  in the file PATENTS.  All contributing project authors may |    7  *  in the file PATENTS.  All contributing project authors may | 
|    8  *  be found in the AUTHORS file in the root of the source tree. |    8  *  be found in the AUTHORS file in the root of the source tree. | 
|    9  */ |    9  */ | 
|   10  |   10  | 
|   11 #ifndef WEBRTC_P2P_BASE_TESTTURNSERVER_H_ |   11 #ifndef WEBRTC_P2P_BASE_TESTTURNSERVER_H_ | 
|   12 #define WEBRTC_P2P_BASE_TESTTURNSERVER_H_ |   12 #define WEBRTC_P2P_BASE_TESTTURNSERVER_H_ | 
|   13  |   13  | 
|   14 #include <string> |   14 #include <string> | 
|   15 #include <vector> |   15 #include <vector> | 
|   16  |   16  | 
|   17 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |   17 #include "webrtc/p2p/base/basicpacketsocketfactory.h" | 
|   18 #include "webrtc/p2p/base/stun.h" |   18 #include "webrtc/p2p/base/stun.h" | 
|   19 #include "webrtc/p2p/base/turnserver.h" |   19 #include "webrtc/p2p/base/turnserver.h" | 
|   20 #include "webrtc/rtc_base/asyncudpsocket.h" |   20 #include "webrtc/base/asyncudpsocket.h" | 
|   21 #include "webrtc/rtc_base/thread.h" |   21 #include "webrtc/base/thread.h" | 
|   22  |   22  | 
|   23 namespace cricket { |   23 namespace cricket { | 
|   24  |   24  | 
|   25 static const char kTestRealm[] = "example.org"; |   25 static const char kTestRealm[] = "example.org"; | 
|   26 static const char kTestSoftware[] = "TestTurnServer"; |   26 static const char kTestSoftware[] = "TestTurnServer"; | 
|   27  |   27  | 
|   28 class TestTurnRedirector : public TurnRedirectInterface { |   28 class TestTurnRedirector : public TurnRedirectInterface { | 
|   29  public: |   29  public: | 
|   30   explicit TestTurnRedirector(const std::vector<rtc::SocketAddress>& addresses) |   30   explicit TestTurnRedirector(const std::vector<rtc::SocketAddress>& addresses) | 
|   31       : alternate_server_addresses_(addresses), |   31       : alternate_server_addresses_(addresses), | 
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  113     return ComputeStunCredentialHash(username, realm, username, key); |  113     return ComputeStunCredentialHash(username, realm, username, key); | 
|  114   } |  114   } | 
|  115  |  115  | 
|  116   TurnServer server_; |  116   TurnServer server_; | 
|  117   rtc::Thread* thread_; |  117   rtc::Thread* thread_; | 
|  118 }; |  118 }; | 
|  119  |  119  | 
|  120 }  // namespace cricket |  120 }  // namespace cricket | 
|  121  |  121  | 
|  122 #endif  // WEBRTC_P2P_BASE_TESTTURNSERVER_H_ |  122 #endif  // WEBRTC_P2P_BASE_TESTTURNSERVER_H_ | 
| OLD | NEW |