comparison Framework/Oracle/WebAssemblyOracle.cpp @ 1264:5e45322c7724 toa2020012703

Fixed errors related to previous fingerprint change
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 27 Jan 2020 15:23:16 +0100
parents 727f2007ca23
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
1263:6128e1823e49 1264:5e45322c7724
106 same address (it often happens in the [single-threaded] browser context). 106 same address (it often happens in the [single-threaded] browser context).
107 */ 107 */
108 class WebAssemblyOracle::FetchContext : public boost::noncopyable 108 class WebAssemblyOracle::FetchContext : public boost::noncopyable
109 { 109 {
110 private: 110 private:
111 Emitter emitter_; 111 Emitter emitter_;
112 const IObserver& receiver_; 112 const IObserver& receiver_;
113 std::auto_ptr<IOracleCommand> command_; 113 std::auto_ptr<IOracleCommand> command_;
114 std::string expectedContentType_; 114 std::string expectedContentType_;
115 std::string receiverFingerprint_; 115 int64_t receiverFingerprint_;
116 116
117 public: 117 public:
118 FetchContext(WebAssemblyOracle& oracle, 118 FetchContext(WebAssemblyOracle& oracle,
119 const IObserver& receiver, 119 const IObserver& receiver,
120 IOracleCommand* command, 120 IOracleCommand* command,
221 221
222 // TODO: remove this line because we are NOT allowed to call methods on GetReceiver that is maybe a dangling ref 222 // TODO: remove this line because we are NOT allowed to call methods on GetReceiver that is maybe a dangling ref
223 if (context->GetReceiver().DoesFingerprintLookGood()) 223 if (context->GetReceiver().DoesFingerprintLookGood())
224 { 224 {
225 callHandler = true; 225 callHandler = true;
226 std::string currentFingerprint(context->GetReceiver().GetFingerprint()); 226 int64_t currentFingerprint(context->GetReceiver().GetFingerprint());
227 227
228 LOG(TRACE) << "SuccessCallback for object at address (" << std::hex 228 LOG(TRACE) << "SuccessCallback for object at address (" << std::hex
229 << &(context->GetReceiver()) << std::dec 229 << &(context->GetReceiver()) << std::dec
230 << " with current fingerprint = " << currentFingerprint 230 << " with current fingerprint = " << currentFingerprint
231 << ". Fingerprint looks OK"; 231 << ". Fingerprint looks OK";