blob: 1807b599b13ad27cda4227f0ee85566253d7a4c1 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Feel free to clone this file to work on a new test.
#include <stdio.h>
#include "gtest/gtest.h"
extern "C" {
#include "src/connectivity/wlan/drivers/third_party/intel/iwlwifi/mvm/mvm.h"
}
#include "src/connectivity/wlan/drivers/third_party/intel/iwlwifi/test/single-ap-test.h"
namespace wlan::testing {
namespace {
// To test helper functions only.
//
// This is used when you only need to test some hardware-independent functions.
// Easy to use. Just call the function you want to test.
//
class DummyTest : public ::testing::Test {
public:
DummyTest() {}
~DummyTest() {}
};
TEST_F(DummyTest, DummyTestFunction) {}
// For more complicated cases that requires the simulated firmware/hardware/
// environment.
//
// This example code uses the SimSingleAp class, which creates an virtual
// AP in the environment so that we can test the client driver.
//
class MvmTest : public SingleApTest {
public:
MvmTest() {}
~MvmTest() {}
};
TEST_F(MvmTest, MvmTestFunction) { EXPECT_EQ(trans_.Init(), ZX_OK); }
} // namespace
} // namespace wlan::testing