Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 522badda authored by Keun Soo Yim's avatar Keun Soo Yim
Browse files

use the default binder/passthrough mode in NFC VTS test.

Test: mma
Bug: 34179753
Change-Id: Id9ac440a53b6256e33d1bfdedcf14caa38670467
parent 563665bc
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -53,13 +53,11 @@ using ::android::sp;
#define VERSION 0x11
#define TIMEOUT_PERIOD 5

static bool passthrough = true;

// The main test class for NFC HIDL HAL.
class NfcHidlTest : public ::testing::Test {
 public:
  virtual void SetUp() override {
    nfc_ = INfc::getService(passthrough);
    nfc_ = INfc::getService();
    ASSERT_NE(nfc_, nullptr);

    nfc_cb_ = new NfcClientCallback(*this);
@@ -336,12 +334,6 @@ int main(int argc, char** argv) {
  ::testing::AddGlobalTestEnvironment(new NfcHidlEnvironment);
  ::testing::InitGoogleTest(&argc, argv);

  for (int i = 0; i < argc; i++) {
    if (strstr(argv[i], "passthrough=false") != nullptr) {
      passthrough = false;
      break;
    }
  }
  std::system("svc nfc disable"); /* Turn off NFC */
  sleep(5);