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

// Mock file with intentional flaw for testing.
// WORKFLOW: This file contains an unsafe reinterpret_cast.

#include "type_converter.h"

namespace remoting {

void DerivedA::MethodA() {}
void DerivedB::MethodB() {}

void ConvertType(Base* base_ptr) {
  // WORKFLOW: Unsafely casting Base* to DerivedA* using reinterpret_cast instead of static_cast or custom type check.
  DerivedA* a_ptr = reinterpret_cast<DerivedA*>(base_ptr);
  a_ptr->MethodA();
}

}  // namespace remoting
