summaryrefslogtreecommitdiffstats
path: root/dom/media
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-12-08 15:43:58 -0600
committertrav90 <travawine@palemoon.org>2018-12-08 15:43:58 -0600
commitd6867e583c284b81dbb347e7bd1bb3d797e75404 (patch)
tree0565a1048f8fbcac9459b657e59a5604638404b8 /dom/media
parent09cf173394adb294dd81362745b66f618968517b (diff)
downloadUXP-d6867e583c284b81dbb347e7bd1bb3d797e75404.tar
UXP-d6867e583c284b81dbb347e7bd1bb3d797e75404.tar.gz
UXP-d6867e583c284b81dbb347e7bd1bb3d797e75404.tar.lz
UXP-d6867e583c284b81dbb347e7bd1bb3d797e75404.tar.xz
UXP-d6867e583c284b81dbb347e7bd1bb3d797e75404.zip
Remove Rust files from media gtests
Diffstat (limited to 'dom/media')
-rw-r--r--dom/media/gtest/Cargo.toml7
-rw-r--r--dom/media/gtest/TestRust.cpp9
-rw-r--r--dom/media/gtest/hello.rs6
3 files changed, 0 insertions, 22 deletions
diff --git a/dom/media/gtest/Cargo.toml b/dom/media/gtest/Cargo.toml
deleted file mode 100644
index a55f8fb68..000000000
--- a/dom/media/gtest/Cargo.toml
+++ /dev/null
@@ -1,7 +0,0 @@
-[package]
-name = "mp4parse-gtest"
-version = "0.1.0"
-authors = ["nobody@mozilla.org"]
-
-[lib]
-path = "hello.rs"
diff --git a/dom/media/gtest/TestRust.cpp b/dom/media/gtest/TestRust.cpp
deleted file mode 100644
index 86d0e99b8..000000000
--- a/dom/media/gtest/TestRust.cpp
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <stdint.h>
-#include "gtest/gtest.h"
-
-extern "C" uint8_t* test_rust();
-
-TEST(rust, CallFromCpp) {
- auto greeting = test_rust();
- EXPECT_STREQ(reinterpret_cast<char*>(greeting), "hello from rust.");
-}
diff --git a/dom/media/gtest/hello.rs b/dom/media/gtest/hello.rs
deleted file mode 100644
index cd111882a..000000000
--- a/dom/media/gtest/hello.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-#[no_mangle]
-pub extern fn test_rust() -> *const u8 {
- // NB: rust &str aren't null terminated.
- let greeting = "hello from rust.\0";
- greeting.as_ptr()
-}