chromium/chrome/browser/web_applications/isolated_web_apps/error/uma_logging_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/web_applications/isolated_web_apps/error/uma_logging.h"

#include <string>

#include "base/metrics/histogram_functions.h"
#include "base/strings/strcat.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/types/expected.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace web_app {

namespace {
enum class TestingErrorEnum {};

struct CustomErrorType {};

TestingErrorEnum ToErrorEnum(CustomErrorType custom_error) {}
}  // namespace

// Testing wrapped in base::expected enumeration.
TEST(IsolatedWebAppUmaExpectedLog, Enumeration) {}

// Tests of a custom error type wrapped in base::expected.
TEST(IsolatedWebAppUmaExpectedLog, CustomType) {}

TEST(IsolatedWebAppUmaExpectedLog, HistogramNaming) {}

}  // namespace web_app