gecko-dev/toolkit/components/glean/gtest/TestFogInit.cpp
Chris H-C c51fb084bf Bug 1627024 - Add a rust gtest for FOG r=janerik
Also document the state of FOG testing at the present time.

Differential Revision: https://phabricator.services.mozilla.com/D73061
2020-04-29 16:05:49 +00:00

25 lines
826 B
C++

/* 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"
#include "nsString.h"
extern "C" {
nsresult fog_init(const nsACString* dataPath, const nsACString* buildId,
const nsACString* appDisplayVersion, const char* channel,
const nsACString* osVersion, const nsACString* architecture);
}
TEST(FOG, FogInitDoesntCrash)
{
nsAutoCString dataPath;
nsAutoCString buildID;
nsAutoCString appVersion;
const char* channel = "";
nsAutoCString osVersion;
nsAutoCString architecture;
ASSERT_EQ(NS_OK, fog_init(&dataPath, &buildID, &appVersion, channel,
&osVersion, &architecture));
}