Skip to content

Commit c5cfb02

Browse files
ryanmeiera-maurice
authored andcommitted
Enable Auth OSS tests
Moved auth test files into tests/ folder, added CMakeLists.txt files, and tweaked a few other files to enable Auth OSS tests in the open source build. PiperOrigin-RevId: 258645801
1 parent ca7b3b1 commit c5cfb02

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

auth/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,8 @@ if(IOS)
220220
# Add a dependency to downloading the headers onto auth.
221221
add_dependencies(firebase_auth ${pod_target_name})
222222
endif()
223+
224+
if(FIREBASE_CPP_BUILD_TESTS)
225+
# Add the tests subdirectory
226+
add_subdirectory(tests)
227+
endif()

testing/config_desktop.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const ConfigRow* ConfigGet(const char* fake) {
3030
if (g_test_data_config == nullptr) {
3131
ADD_FAILURE() << "No test data at all";
3232
assert(false);
33+
return nullptr;
3334
}
3435

3536
const TestDataConfig* config = GetTestDataConfig(g_test_data_config);

0 commit comments

Comments
 (0)