Source release 19.1.0
This commit is contained in:
@@ -48,16 +48,22 @@ class WvCdmTestBase : public ::testing::Test {
|
||||
// Calls Provision() if not already provisioned.
|
||||
virtual void EnsureProvisioned();
|
||||
|
||||
// Locate the portion of the server's provisioning response message that is
|
||||
// between the strings jason_start_substr and json_end_substr. Returns the
|
||||
// string through *result. If the start substring match fails, assume the
|
||||
// entire string represents a serialized protobuf mesaage and return true with
|
||||
// the entire string. If the end_substring match fails, return false with an
|
||||
// empty *result.
|
||||
bool ExtractSignedMessage(const std::string& response, std::string* result);
|
||||
virtual bool skip_sleepy_tests() const { return skip_sleepy_tests_; }
|
||||
virtual bool skip_decryption_stress_tests() const {
|
||||
return skip_decryption_stress_tests_;
|
||||
}
|
||||
virtual bool skip_request_flood_tests() const {
|
||||
return skip_request_flood_tests_;
|
||||
}
|
||||
virtual bool skip_multi_thread_stress_tests() const {
|
||||
return skip_multi_thread_stress_tests_;
|
||||
}
|
||||
virtual bool skip_usage_table_stress_tests() const {
|
||||
return skip_usage_table_stress_tests_;
|
||||
}
|
||||
|
||||
// Fill a buffer with some nonconstant data of the given size. The first
|
||||
// byte will be set to <init> to help you find the buffer when debugging.
|
||||
// Fill a buffer with some nonconstant data of the given size. The first byte
|
||||
// will be set to <init> to help you find the buffer when debugging.
|
||||
static void StripeBuffer(std::vector<uint8_t>* buffer, size_t size,
|
||||
uint8_t init);
|
||||
|
||||
@@ -86,7 +92,15 @@ class WvCdmTestBase : public ::testing::Test {
|
||||
|
||||
// This should be set by test subclasses BEFORE calling SetUp -- i.e. in the
|
||||
// tests's constructor.
|
||||
bool binary_provisioning_;
|
||||
bool binary_provisioning_ = false;
|
||||
|
||||
private:
|
||||
// Skip flags for long running tests.
|
||||
static bool skip_sleepy_tests_;
|
||||
static bool skip_decryption_stress_tests_;
|
||||
static bool skip_request_flood_tests_;
|
||||
static bool skip_multi_thread_stress_tests_;
|
||||
static bool skip_usage_table_stress_tests_;
|
||||
};
|
||||
|
||||
// This just makes the constructor public so that we can create one with dummy
|
||||
@@ -95,7 +109,7 @@ class TestCdmEngine : public CdmEngine {
|
||||
public:
|
||||
TestCdmEngine(wvutil::FileSystem* file_system,
|
||||
std::shared_ptr<metrics::EngineMetrics> metrics)
|
||||
: CdmEngine(file_system, metrics) {}
|
||||
: CdmEngine(file_system, std::move(metrics)) {}
|
||||
const CdmSession* GetCdmSession(std::string sessionId) const;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user