Merge pull request #2515 from ciband:feat/support_esp8266

PiperOrigin-RevId: 276333426
This commit is contained in:
vslashg
2019-10-25 10:21:03 -04:00
8 changed files with 85 additions and 9 deletions

View File

@@ -30,13 +30,20 @@
#include <cstdio>
#include "gtest/gtest.h"
#ifdef ARDUINO
#if GTEST_OS_ESP8266 || GTEST_OS_ESP32
#if GTEST_OS_ESP8266
extern "C" {
#endif
void setup() {
testing::InitGoogleTest();
}
void loop() { RUN_ALL_TESTS(); }
#if GTEST_OS_ESP8266
}
#endif
#else
GTEST_API_ int main(int argc, char **argv) {