Index: third_party/WebKit/Source/platform/BUILD.gn |
diff --git a/third_party/WebKit/Source/platform/BUILD.gn b/third_party/WebKit/Source/platform/BUILD.gn |
index 95cb9d85149aac5e7175bcc96381e986bf7bbbd4..3cbee4bdc0ab0aba943d2413f001a4432dc2faee 100644 |
--- a/third_party/WebKit/Source/platform/BUILD.gn |
+++ b/third_party/WebKit/Source/platform/BUILD.gn |
@@ -330,6 +330,8 @@ component("platform") { |
"//v8", |
] |
deps = [ |
+ "//device/battery:mojo_bindings", |
+ "//mojo/public/c/system:for_component", |
"//third_party/WebKit/Source/platform/heap", |
"//third_party/harfbuzz-ng", |
"//third_party/icu", |
@@ -449,6 +451,15 @@ source_set("test_support") { |
"//testing/gmock", |
] |
+ deps = [ |
+ "//device/battery", |
+ "//device/battery:mojo_bindings", |
+ "//mojo/edk/system", |
+ ] |
+ if (is_android) { |
+ deps -= [ "//device/battery" ] |
+ } |
+ |
if (is_win) { |
cflags = [ "/wd4267" ] # Truncation from size_t to int. |
} |
@@ -523,6 +534,8 @@ test("blink_platform_unittests") { |
"//cc", |
"//cc:test_support", |
"//cc/blink", |
+ "//mojo/edk/embedder:headers", |
+ "//mojo/edk/test:test_support", |
"//skia", |
"//testing/gmock", |
"//testing/gtest", |