mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
Also document the state of FOG testing at the present time. Differential Revision: https://phabricator.services.mozilla.com/D73061
25 lines
826 B
C++
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));
|
|
}
|