(This is a merge of http://go/wvgerrit/153552.) The correct way to create a FileSystem object for testing CdmEngine depends on the platform. However, our code has historically just instantiated a new FileSystem object using the default constructor. This works fine for Android and has historically worked fine for the CE CDM tests because they did not implement storage correctly. However, an upcoming commit will fix the implementation of storage in the CE CDM TestHost, causing tests that use a default FileSystem constructor to fail. This patch adds a new platform-defined function that instantiates per-origin test storage in a platform-correct way. For Android, it continues to use the default constructor, while for CE CDM, it uses the TestHost. Bug: 193060708 Test: x86-64 w/ storage separated Test: build_and_run_all_unit_tests.sh Change-Id: I0a9b6a4d3943e053d51d6018e392b7f215f50642
8 lines
285 B
C++
8 lines
285 B
C++
// Copyright 2022 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
|
|
#include "create_test_file_system.h"
|
|
|
|
wvutil::FileSystem* CreateTestFileSystem() { return new wvutil::FileSystem(); }
|