summaryrefslogtreecommitdiffstats
path: root/dom/media/gtest/TestRust.cpp
blob: 86d0e99b86c4837af02b4c858d4db570eaf8119c (plain)
1
2
3
4
5
6
7
8
9
#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.");
}