Add compatibility patch for base::test::TaskEnvironment

BUG=chromium:1094927
TEST=build libchrome, unittest libbrillo

Change-Id: I7618f367806b4b02c8622308f2fa50de94eab426
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/external/libchrome/+/2277685
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Commit-Queue: Qijiang Fan <fqj@google.com>
Tested-by: Qijiang Fan <fqj@google.com>
diff --git a/libchrome_tools/patches/forward-compatibility-task-environment.patch b/libchrome_tools/patches/forward-compatibility-task-environment.patch
new file mode 100644
index 0000000..23b473c
--- /dev/null
+++ b/libchrome_tools/patches/forward-compatibility-task-environment.patch
@@ -0,0 +1,20 @@
+diff --git a/base/test/task_environment.h b/base/test/task_environment.h
+new file mode 100644
+index 000000000000..1d7a19d5d6c2
+--- /dev/null
++++ base/test/task_environment.h
+@@ -0,0 +1,14 @@
++#ifndef BASE_TEST_TASK_ENVIRONMENT_H_
++#define BASE_TEST_TASK_ENVIRONMENT_H_
++
++#include <base/test/scoped_task_environment.h>
++
++namespace base {
++namespace test {
++
++using TaskEnvironment = ScopedTaskEnvironment;
++
++}
++}
++
++#endif // BASE_TEST_TASK_ENVIRONMENT_H_
diff --git a/libchrome_tools/patches/patches b/libchrome_tools/patches/patches
index fd70096..12a7196 100644
--- a/libchrome_tools/patches/patches
+++ b/libchrome_tools/patches/patches
@@ -40,6 +40,7 @@
 # Forward compatibility patch to r78xxxx
 forward-compatibility-dbus.patch
 forward-compatibility-message-pump-type.patch
+forward-compatibility-task-environment.patch
 
 # Remove after uprev to r780000
 py3.patch