main.cpp 296 B

12345678910111213141516171819
  1. #define CR_HOST
  2. #include <gtest/gtest.h>
  3. #include <cr.h>
  4. #include "../types.h"
  5. TEST(Lib, View) {
  6. view_type view{};
  7. cr_plugin ctx;
  8. cr_plugin_load(ctx, PLUGIN);
  9. ctx.userdata = &view;
  10. cr_plugin_update(ctx);
  11. ASSERT_EQ(ctx.userdata, nullptr);
  12. cr_plugin_close(ctx);
  13. }