#include "components/device_signals/core/browser/signals_aggregator_impl.h"
#include <memory>
#include <unordered_set>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "components/device_signals/core/browser/mock_signals_collector.h"
#include "components/device_signals/core/browser/mock_user_permission_service.h"
#include "components/device_signals/core/browser/signals_types.h"
#include "components/device_signals/core/browser/user_context.h"
#include "components/device_signals/core/browser/user_permission_service.h"
#include "components/device_signals/core/common/signals_constants.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Invoke;
Pointee;
Ref;
Return;
namespace device_signals {
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
namespace {
constexpr char kGaiaId[] = …;
}
#endif
class SignalsAggregatorImplTest : public testing::Test { … };
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
TEST_F(SignalsAggregatorImplTest, GetSignalsForUser_NoSignal) { … }
TEST_F(SignalsAggregatorImplTest, GetSignalsForUser_MultipleSignals) { … }
TEST_F(SignalsAggregatorImplTest, GetSignalsForUser_SingleSignal_Supported) { … }
TEST_F(SignalsAggregatorImplTest, GetSignalsForUser_SingleSignal_Unsupported) { … }
TEST_F(SignalsAggregatorImplTest, GetSignalsForUser_InvalidUserPermissions) { … }
#endif
TEST_F(SignalsAggregatorImplTest, GetSignals_SingleSignal_Supported) { … }
TEST_F(SignalsAggregatorImplTest, GetSignals_SingleSignal_NoPermission) { … }
}