1 /* Copyright (c) 2017-2023. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef NETZONE_TEST_HPP
7 #define NETZONE_TEST_HPP
9 #include "simgrid/s4u/NetZone.hpp"
11 XBT_LOG_EXTERNAL_CATEGORY(ker_platform);
13 // Callback function common to several routing unit tests
15 simgrid::s4u::Host* operator()(simgrid::s4u::NetZone* zone, const std::vector<unsigned long>& /*coord*/,
16 unsigned long id) const
18 return zone->create_host(std::to_string(id), "1Gf");