Update Widevine Android Version Number for M-MR1 (DO NOT MERGE)
This updates Widevine's version number (and our canary test) for M-MR1. Widevine will report its version as 3.1.0 instead of 3.0.0, in order to distinguish it from the version released with Android M. Bug: 25297264 Change-Id: I79c53b2d1a63753bce2aa5a77c46543c2804d95e
This commit is contained in:
committed by
John Bruce
parent
d1b284b21c
commit
c2ce8f974f
@@ -18,7 +18,7 @@ const char kL2Dir[] = "/L2/";
|
||||
const char kL3Dir[] = "/L3/";
|
||||
const char kFactoryKeyboxPath[] = "/factory/wv.keys";
|
||||
|
||||
const char kWVCdmVersion[] = "v3.0.0-android";
|
||||
const char kWVCdmVersion[] = "v3.1.0-android";
|
||||
|
||||
bool GetAndroidProperty(const char* key, std::string* value) {
|
||||
char val[PROPERTY_VALUE_MAX];
|
||||
|
||||
@@ -2542,14 +2542,14 @@ TEST(VersionNumberTest, VersionNumberChangeCanary) {
|
||||
char release_number[PROPERTY_VALUE_MAX];
|
||||
ASSERT_GT(property_get("ro.build.version.release", release_number, "Unknown"),
|
||||
0);
|
||||
EXPECT_STREQ("6.0", release_number)
|
||||
EXPECT_STREQ("6.0.1", release_number)
|
||||
<< "The Android version number has changed. You need to update this test "
|
||||
"and also possibly update the Widevine version number in "
|
||||
"properties_android.cpp.";
|
||||
|
||||
std::string widevine_version;
|
||||
ASSERT_TRUE(Properties::GetWVCdmVersion(&widevine_version));
|
||||
EXPECT_EQ("v3.0.0-android", widevine_version)
|
||||
EXPECT_EQ("v3.1.0-android", widevine_version)
|
||||
<< "The Widevine CDM version number has changed. Did you forget to "
|
||||
"update "
|
||||
"this test after changing it?";
|
||||
|
||||
Reference in New Issue
Block a user