summaryrefslogtreecommitdiff
path: root/src/components/test_main.cc
blob: 8912ed9bd2c3cd6666108e7b5cd698b2de74b291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include "gmock/gmock.h"
#include "utils/custom_string.h"
#include "utils/logger.h"

CREATE_LOGGERPTR_GLOBAL(logger_, "SDLMain")
int main(int argc, char** argv) {
  namespace custom_str = utils::custom_string;
  testing::InitGoogleMock(&argc, argv);
  ::testing::DefaultValue<custom_str::CustomString>::Set(
      custom_str::CustomString(""));
  const int result = RUN_ALL_TESTS();

  DEINIT_LOGGER();
  return result;
}