#include <gtest/gtest.h>

#include <stdint.h>
#include "adb.h"
#include "proca.h"


TEST(SmokeTest, 01_DeviceIsAttached) {
  int res = Adb::Shell("cat /proc/cpuinfo");
  ASSERT_EQ(res, 0) << "Device is not attached or not recognized by system";
}

TEST(SmokeTest, 02_PaDaemonIsStarted) {
  bool res = Proca::WaitForDaemon();
  ASSERT_TRUE(res) << "PA daemon is NOT started on device";
}

TEST(SmokeTest, 03_SimpleAuthenticationOfNativeApplication) {
  int res = Adb::Shell("canary | grep SUCCESS");
  ASSERT_EQ(res, 0) << "Authentication is NOT worked";
}
