@@ -86,8 +86,8 @@ std::vector<std::string> Tokenize(const std::string& aString) {
86
86
return std::vector<std::string>(it, end);
87
87
}
88
88
89
- static const std::string TruncateRecordId = " truncate-record-id" ;
90
- static const std::string TruncateRecordData = " I will soon be truncated" ;
89
+ static const char TruncateRecordId[] = " truncate-record-id" ;
90
+ static const char TruncateRecordData[] = " I will soon be truncated" ;
91
91
92
92
template <class Continuation >
93
93
class WriteRecordSuccessTask {
@@ -225,7 +225,7 @@ class VerifyAndOverwriteContinuation : public ReadContinuation {
225
225
const std::string mTestID ;
226
226
};
227
227
228
- static const std::string OpenAgainRecordId = " open-again-record-id" ;
228
+ static const char OpenAgainRecordId[] = " open-again-record-id" ;
229
229
230
230
class OpenedSecondTimeContinuation : public OpenContinuation {
231
231
public:
@@ -390,7 +390,6 @@ class ReportReadRecordContinuation : public ReadContinuation {
390
390
enum ShutdownMode { ShutdownNormal, ShutdownTimeout, ShutdownStoreToken };
391
391
392
392
static ShutdownMode sShutdownMode = ShutdownNormal;
393
- static std::string sShutdownToken ;
394
393
395
394
void FakeDecryptor::UpdateSession (uint32_t aPromiseId, const char * aSessionId,
396
395
uint32_t aSessionIdLength,
@@ -421,8 +420,7 @@ void FakeDecryptor::UpdateSession(uint32_t aPromiseId, const char* aSessionId,
421
420
sShutdownMode = ShutdownTimeout;
422
421
} else if (mode == " token" ) {
423
422
sShutdownMode = ShutdownStoreToken;
424
- sShutdownToken = tokens[2 ];
425
- Message (" shutdown-token received " + sShutdownToken );
423
+ Message (" shutdown-token received " + tokens[2 ]);
426
424
}
427
425
} else if (task == " retrieve-shutdown-token" ) {
428
426
ReadRecord (FakeDecryptor::sInstance ->mHost , " shutdown-token" ,
0 commit comments