| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * libjingle |    2  * libjingle | 
|    3  * Copyright 2015 Google Inc. |    3  * Copyright 2015 Google Inc. | 
|    4  * |    4  * | 
|    5  * Redistribution and use in source and binary forms, with or without |    5  * Redistribution and use in source and binary forms, with or without | 
|    6  * modification, are permitted provided that the following conditions are met: |    6  * modification, are permitted provided that the following conditions are met: | 
|    7  * |    7  * | 
|    8  *  1. Redistributions of source code must retain the above copyright notice, |    8  *  1. Redistributions of source code must retain the above copyright notice, | 
|    9  *     this list of conditions and the following disclaimer. |    9  *     this list of conditions and the following disclaimer. | 
|   10  *  2. Redistributions in binary form must reproduce the above copyright notice, |   10  *  2. Redistributions in binary form must reproduce the above copyright notice, | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
|   26  */ |   26  */ | 
|   27  |   27  | 
|   28 #include "talk/app/webrtc/dtlsidentitystore.h" |   28 #include "talk/app/webrtc/dtlsidentitystore.h" | 
|   29  |   29  | 
|   30 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" |   30 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" | 
|   31 #include "webrtc/base/gunit.h" |   31 #include "webrtc/base/gunit.h" | 
|   32 #include "webrtc/base/logging.h" |   32 #include "webrtc/base/logging.h" | 
|   33 #include "webrtc/base/ssladapter.h" |   33 #include "webrtc/base/ssladapter.h" | 
|   34  |   34  | 
|   35 using webrtc::DtlsIdentityStore; |   35 using webrtc::DtlsIdentityStore; | 
|   36 using webrtc::WebRtcSessionDescriptionFactory; |  | 
|   37  |   36  | 
|   38 static const int kTimeoutMs = 10000; |   37 static const int kTimeoutMs = 10000; | 
|   39  |   38  | 
|   40 class MockDtlsIdentityRequestObserver : |   39 class MockDtlsIdentityRequestObserver : | 
|   41     public webrtc::DTLSIdentityRequestObserver { |   40     public webrtc::DTLSIdentityRequestObserver { | 
|   42  public: |   41  public: | 
|   43   MockDtlsIdentityRequestObserver() |   42   MockDtlsIdentityRequestObserver() | 
|   44       : call_back_called_(false), last_request_success_(false) {} |   43       : call_back_called_(false), last_request_success_(false) {} | 
|   45   void OnFailure(int error) override { |   44   void OnFailure(int error) override { | 
|   46     EXPECT_FALSE(call_back_called_); |   45     EXPECT_FALSE(call_back_called_); | 
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  121 TEST_F(DtlsIdentityStoreTest, DeleteStoreEarlyNoCrash) { |  120 TEST_F(DtlsIdentityStoreTest, DeleteStoreEarlyNoCrash) { | 
|  122   EXPECT_FALSE(store_->HasFreeIdentityForTesting()); |  121   EXPECT_FALSE(store_->HasFreeIdentityForTesting()); | 
|  123  |  122  | 
|  124   store_->RequestIdentity(observer_.get()); |  123   store_->RequestIdentity(observer_.get()); | 
|  125   store_.reset(); |  124   store_.reset(); | 
|  126  |  125  | 
|  127   worker_thread_->Stop(); |  126   worker_thread_->Stop(); | 
|  128   EXPECT_FALSE(observer_->call_back_called()); |  127   EXPECT_FALSE(observer_->call_back_called()); | 
|  129 } |  128 } | 
|  130  |  129  | 
| OLD | NEW |