#include "components/services/app_service/public/cpp/capability_access_update.h"
#include <optional>
#include "components/services/app_service/public/cpp/capability_access.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char app_id[] = …;
}
class CapabilityAccessUpdateTest : public testing::Test { … };
TEST_F(CapabilityAccessUpdateTest, StateIsNonNull) { … }
TEST_F(CapabilityAccessUpdateTest, DeltaIsNonNull) { … }
TEST_F(CapabilityAccessUpdateTest, BothAreNonNull) { … }
TEST_F(CapabilityAccessUpdateTest, IsAccessingAnyCapability_Empty) { … }
TEST_F(CapabilityAccessUpdateTest,
IsAccessingAnyCapability_StateAccessingMicrophone) { … }
TEST_F(CapabilityAccessUpdateTest,
IsAccessingAnyCapability_StateAccessingCamera) { … }
TEST_F(CapabilityAccessUpdateTest, IsAccessingAnyCapability_DeltaNoMicrophone) { … }