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