< prev index next >

test/hotspot/gtest/jfr/test_networkUtilization.cpp

8206006: Build failed on Windows

*** 59,70 **** static uint64_t nanoseconds(Type value) { return value; } }; ! typedef TimeInstant<CounterRepresentation, MockFastUnorderedElapsedCounterSource> JfrTicks; ! typedef TimeInterval<CounterRepresentation, MockFastUnorderedElapsedCounterSource> JfrTickspan; class MockJfrCheckpointWriter { public: traceid current; std::map<traceid, std::string> ids; --- 59,70 ---- static uint64_t nanoseconds(Type value) { return value; } }; ! typedef TimeInstant<CounterRepresentation, MockFastUnorderedElapsedCounterSource> MockJfrTicks; ! typedef TimeInterval<CounterRepresentation, MockFastUnorderedElapsedCounterSource> MockJfrTickspan; class MockJfrCheckpointWriter { public: traceid current; std::map<traceid, std::string> ids; ***************
*** 126,138 **** void commit() { committed.push_back(*this); } ! void set_starttime(const JfrTicks& time) {} ! void set_endtime(const JfrTicks& time) {} static const MockEventNetworkUtilization& get_committed(const std::string& name) { static MockEventNetworkUtilization placeholder; for (std::vector<MockEventNetworkUtilization>::const_iterator i = committed.begin(); i != committed.end(); --- 126,138 ---- void commit() { committed.push_back(*this); } ! void set_starttime(const MockJfrTicks& time) {} ! void set_endtime(const MockJfrTicks& time) {} static const MockEventNetworkUtilization& get_committed(const std::string& name) { static MockEventNetworkUtilization placeholder; for (std::vector<MockEventNetworkUtilization>::const_iterator i = committed.begin(); i != committed.end(); ***************
*** 214,232 **** --- 214,236 ---- #define EventNetworkUtilization MockEventNetworkUtilization #define FastUnorderedElapsedCounterSource MockFastUnorderedElapsedCounterSource #define JfrOSInterface MockJfrOSInterface #define JfrSerializer MockJfrSerializer #define JfrCheckpointWriter MockJfrCheckpointWriter + #define JfrTicks MockJfrTicks + #define JfrTickspan MockJfrTickspan #include "jfr/periodic/jfrNetworkUtilization.hpp" #include "jfr/periodic/jfrNetworkUtilization.cpp" #undef EventNetworkUtilization #undef FastUnorderedElapsedCounterSource #undef JfrOSInterface #undef JfrSerializer #undef JfrCheckpointWriter + #undef JfrTicks + #undef JfrTickspan } // anonymous namespace class JfrTestNetworkUtilization : public ::testing::Test { protected:
< prev index next >