chromium/chrome/browser/web_applications/isolated_web_apps/key_distribution/iwa_key_distribution_component_installer_browsertest.cc

// Copyright 2024 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/component_updater/iwa_key_distribution_component_installer.h"

#include <array>
#include <string>

#include "base/base64.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/scoped_feature_list.h"
#include "base/threading/thread_restrictions.h"
#include "base/version.h"
#include "chrome/browser/web_applications/isolated_web_apps/key_distribution/iwa_key_distribution_info_provider.h"
#include "chrome/browser/web_applications/isolated_web_apps/key_distribution/proto/key_distribution.pb.h"
#include "chrome/browser/web_applications/isolated_web_apps/test/key_distribution/test_utils.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/test/browser_test.h"

namespace web_app {

namespace {

ErrorIs;
HasValue;
_;
Eq;

constexpr std::array<uint8_t, 4> kExpectedKey =;
constexpr char kWebBundleId[] =;

IwaKeyDistribution CreateValidData() {}

}  // namespace

class IwaKeyDistributionComponentInstallBrowserTest
    : public InProcessBrowserTest {};

IN_PROC_BROWSER_TEST_F(
    IwaKeyDistributionComponentInstallBrowserTest,
    CallComponentReadyWhenRegistrationFindsExistingComponent) {}

}  // namespace web_app