summaryrefslogtreecommitdiffstats
path: root/intl/l10n/rust/gtest/Test.cpp
blob: 98e7a8b5c680b962b9cf5c60f74d639b486d2535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "gtest/gtest.h"

extern "C" void Rust_L10NLoadAsync(bool* aItWorked);

TEST(RustL10N, LoadAsync)
{
  bool itWorked = false;
  Rust_L10NLoadAsync(&itWorked);
  EXPECT_TRUE(itWorked);
}

extern "C" void Rust_L10NLoadSync(bool* aItWorked);

TEST(RustL10N, LoadSync)
{
  bool itWorked = false;
  Rust_L10NLoadSync(&itWorked);
  EXPECT_TRUE(itWorked);
}