#include <algorithm>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/privacy_budget/scoped_privacy_budget_config.h"
#include "chrome/test/base/chrome_test_utils.h"
#include "chrome/test/base/platform_browser_test.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/browser/worker_type.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class UkmWorkerBrowserTest : public PlatformBrowserTest { … };
}
IN_PROC_BROWSER_TEST_F(UkmWorkerBrowserTest,
SharedWorker_DocumentClientIdIsPlumbed) { … }
IN_PROC_BROWSER_TEST_F(UkmWorkerBrowserTest,
ServiceWorker_DocumentClientIdIsPlumbed) { … }
IN_PROC_BROWSER_TEST_F(UkmWorkerBrowserTest,
ServiceWorker_DedicatedWorkerClientIdIsIgnored) { … }
IN_PROC_BROWSER_TEST_F(UkmWorkerBrowserTest,
ServiceWorker_SharedWorkerClientIdIsPlumbed) { … }