| Index: content/common/gpu/media/video_decode_accelerator_unittest.cc
 | 
| diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc
 | 
| index 8f6149d57ca5fdde39b2f2e29c178d633917ad9d..7fdd06f7cdaffa1ddd7ff8873009c907ece8d322 100644
 | 
| --- a/content/common/gpu/media/video_decode_accelerator_unittest.cc
 | 
| +++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc
 | 
| @@ -46,6 +46,7 @@
 | 
|  #include "base/synchronization/condition_variable.h"
 | 
|  #include "base/synchronization/lock.h"
 | 
|  #include "base/synchronization/waitable_event.h"
 | 
| +#include "base/thread_task_runner_handle.h"
 | 
|  #include "base/threading/thread.h"
 | 
|  #include "content/common/gpu/media/fake_video_decode_accelerator.h"
 | 
|  #include "content/common/gpu/media/rendering_helper.h"
 | 
| @@ -74,6 +75,7 @@
 | 
|  
 | 
|  #if defined(USE_OZONE)
 | 
|  #include "ui/ozone/public/ozone_platform.h"
 | 
| +#include "ui/ozone/public/ui_thread_gpu.h"
 | 
|  #endif  // defined(USE_OZONE)
 | 
|  
 | 
|  using media::VideoDecodeAccelerator;
 | 
| @@ -227,6 +229,16 @@ class VideoDecodeAcceleratorTestEnvironment : public ::testing::Environment {
 | 
|      rendering_thread_.task_runner()->PostTask(
 | 
|          FROM_HERE, base::Bind(&RenderingHelper::InitializeOneOff, &done));
 | 
|      done.Wait();
 | 
| +
 | 
| +#if defined(USE_OZONE)
 | 
| +    // Need to initialize after the rendering side since the rendering side
 | 
| +    // initializes the "GPU" parts of Ozone.
 | 
| +    //
 | 
| +    // This also needs to be done in the test environment since this shouldn't
 | 
| +    // be initialized multiple times for the same Ozone platform.
 | 
| +    ui_thread_gpu_.Initialize(base::ThreadTaskRunnerHandle::Get(),
 | 
| +                              GetRenderingTaskRunner());
 | 
| +#endif
 | 
|    }
 | 
|  
 | 
|    void TearDown() override { rendering_thread_.Stop(); }
 | 
| @@ -237,6 +249,9 @@ class VideoDecodeAcceleratorTestEnvironment : public ::testing::Environment {
 | 
|  
 | 
|   private:
 | 
|    base::Thread rendering_thread_;
 | 
| +#if defined(USE_OZONE)
 | 
| +  ui::UiThreadGpu ui_thread_gpu_;
 | 
| +#endif
 | 
|  
 | 
|    DISALLOW_COPY_AND_ASSIGN(VideoDecodeAcceleratorTestEnvironment);
 | 
|  };
 | 
| 
 |