#include "base_command.h"

extern "C" {
#include "command.h"
}

#include <gtest/gtest.h>

class AuthenticateTest : public BaseCommandTest {
 public:
  AuthenticateTest() {
  }
  virtual ~AuthenticateTest() {
  }
};

TEST_F(AuthenticateTest, AuthenticationWithWeakStatus) {
  TciCommand tci_command = {0};

  tci_command.cmdId = KAuthenticateWithProcessInfo;
  tci_command.handler = handler;

  TEEC_Result status = SendCommand(tci_command);
  EXPECT_EQ(TEEC_SUCCESS, status);

  EXPECT_EQ(1, tci_command.process_info.is_weak_integrity);
}
