#include <set>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/scoped_observation.h"
#include "components/services/app_service/public/cpp/app_capability_access_cache.h"
#include "components/services/app_service/public/cpp/capability_access.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
class AppCapabilityAccessCacheTest
: public testing::Test,
public apps::AppCapabilityAccessCache::Observer { … };
class CapabilityAccessRecursiveObserver
: public apps::AppCapabilityAccessCache::Observer { … };
TEST_F(AppCapabilityAccessCacheTest, ForEachApp) { … }
TEST_F(AppCapabilityAccessCacheTest, Observer) { … }
TEST_F(AppCapabilityAccessCacheTest, Recursive) { … }
TEST_F(AppCapabilityAccessCacheTest, SuperRecursive) { … }
TEST_F(AppCapabilityAccessCacheTest, GetAppsAccessingCapabilities_Empty) { … }
TEST_F(AppCapabilityAccessCacheTest,
GetAppsAccessingCapabilities_CameraAndMicrophone) { … }