chromium/chrome/browser/private_network_access/private_network_device_chooser_controller_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 <memory>
#include <string>
#include <utility>

#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/private_network_access/private_network_device_chooser_controller.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "components/permissions/mock_chooser_controller_view.h"
#include "content/public/test/web_contents_tester.h"
#include "net/base/ip_address.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/private_network_device/private_network_device.mojom.h"
#include "url/gurl.h"

NiceMock;

namespace {
const char kDefaultTestUrl[] =;
}  //  namespace

class PrivateNetworkDeviceChooserControllerTest
    : public ChromeRenderViewHostTestHarness {};

// The new added device will overwrite the device list because PNA chooser only
// have one device at a time.
TEST_F(PrivateNetworkDeviceChooserControllerTest, AddDevice) {}

// TODO(crbug.com/40272624): add test for Select(), Close() and Cancel().