#include "chrome/browser/device_notifications/device_connection_tracker_unittest.h"
#include <memory>
#include "chrome/browser/device_notifications/device_system_tray_icon.h"
#include "chrome/browser/device_notifications/device_system_tray_icon_renderer.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/test/base/testing_profile_manager.h"
namespace {
TimeTicks;
Pair;
Return;
UnorderedElementsAre;
OriginState;
constexpr char kTestProfileName[] = …;
}
DeviceConnectionTrackerTestBase::DeviceConnectionTrackerTestBase()
: … { … }
DeviceConnectionTrackerTestBase::~DeviceConnectionTrackerTestBase() = default;
void DeviceConnectionTrackerTestBase::SetUp() { … }
Profile* DeviceConnectionTrackerTestBase::CreateTestingProfile(
const std::string& profile_name) { … }
void DeviceConnectionTrackerTestBase::TestDeviceConnection(
bool has_system_tray_icon,
const std::vector<std::pair<url::Origin, std::string>>& origin_name_pairs) { … }
void DeviceConnectionTrackerTestBase::TestWhitelistedOrigin(
const std::pair<url::Origin, std::string> whitelisted_origin,
const std::pair<url::Origin, std::string> non_whitelisted_origin) { … }
#if BUILDFLAG(ENABLE_EXTENSIONS)
scoped_refptr<const extensions::Extension>
DeviceConnectionTrackerTestBase::CreateExtensionWithName(
const std::string& extension_name) { … }
scoped_refptr<const extensions::Extension>
DeviceConnectionTrackerTestBase::CreateExtensionWithNameAndId(
const std::string& extension_name,
const std::string& extension_id) { … }
void DeviceConnectionTrackerTestBase::AddExtensionToProfile(
Profile* profile,
const extensions::Extension* extension) { … }
void DeviceConnectionTrackerTestBase::TestDeviceConnectionExtensionOrigins(
bool has_system_tray_icon) { … }
void DeviceConnectionTrackerTestBase::TestSingleProfileWhitelistedExtension(
std::string whitelisted_extension_name,
std::string whitelisted_extension_id) { … }
void DeviceConnectionTrackerTestBase::TestProfileDestroyedExtensionOrigin() { … }
#endif