Bug 1172396 - Use a fixed node ID for GMP trial creation - r=cpearce
authorEdwin Flores <edwin@mozilla.com>
Tue, 01 Sep 2015 17:31:48 +1200
changeset 260255 a305c15a41024aa47279f91ae06355e583d7cc0f
parent 260254 eb81c8e930d636ffe0fe5019150546a8ef16dff8
child 260256 02920865b74015575041a3580d5c9247b07dc28c
push id29304
push usercbook@mozilla.com
push dateTue, 01 Sep 2015 12:32:25 +0000
treeherdermozilla-central@dd509db16a13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1172396
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1172396 - Use a fixed node ID for GMP trial creation - r=cpearce
dom/media/eme/GMPVideoDecoderTrialCreator.cpp
--- a/dom/media/eme/GMPVideoDecoderTrialCreator.cpp
+++ b/dom/media/eme/GMPVideoDecoderTrialCreator.cpp
@@ -479,19 +479,19 @@ TestGMPVideoDecoder::CreateGMPVideoDecod
 {
   MOZ_ASSERT(OnGMPThread());
 
   nsTArray<nsCString> tags;
   tags.AppendElement(NS_LITERAL_CSTRING("h264"));
   tags.AppendElement(NS_ConvertUTF16toUTF8(mKeySystem));
 
   UniquePtr<GetGMPVideoDecoderCallback> callback(new Callback(this));
-  nsCString fakeNodeId;
-  if (NS_FAILED(GenerateRandomName(fakeNodeId, 32)) ||
-      NS_FAILED(mGMPService->GetGMPVideoDecoder(&tags, fakeNodeId, Move(callback)))) {
+  if (NS_FAILED(mGMPService->GetGMPVideoDecoder(&tags,
+                                                NS_LITERAL_CSTRING("fakeNodeId1234567890fakeNodeId12"),
+                                                Move(callback)))) {
     ReportFailure(NS_LITERAL_CSTRING("TestGMPVideoDecoder GMPService GetGMPVideoDecoder returned failure"));
   }
 }
 
 void
 GMPVideoDecoderTrialCreator::MaybeAwaitTrialCreate(const nsAString& aKeySystem,
                                                    AbstractPromiseLike* aPromisey,
                                                    nsPIDOMWindow* aParent)