changeset 50894:e8d55141afd2

8206006: Build failed on Windows Reviewed-by: jwilhelm, dcubed Contributed-by: robin.westberg@oracle.com
author jwilhelm
date Thu, 28 Jun 2018 22:28:41 +0200
parents 1ecd78e0f56b
children 83ed34655f59 b94063762a7c
files test/hotspot/gtest/jfr/test_networkUtilization.cpp
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/gtest/jfr/test_networkUtilization.cpp	Thu Jun 28 21:11:50 2018 +0200
+++ b/test/hotspot/gtest/jfr/test_networkUtilization.cpp	Thu Jun 28 22:28:41 2018 +0200
@@ -61,8 +61,8 @@
     }
   };
 
-  typedef TimeInstant<CounterRepresentation, MockFastUnorderedElapsedCounterSource> JfrTicks;
-  typedef TimeInterval<CounterRepresentation, MockFastUnorderedElapsedCounterSource> JfrTickspan;
+  typedef TimeInstant<CounterRepresentation, MockFastUnorderedElapsedCounterSource> MockJfrTicks;
+  typedef TimeInterval<CounterRepresentation, MockFastUnorderedElapsedCounterSource> MockJfrTickspan;
 
   class MockJfrCheckpointWriter {
   public:
@@ -128,9 +128,9 @@
       committed.push_back(*this);
     }
 
-    void set_starttime(const JfrTicks& time) {}
+    void set_starttime(const MockJfrTicks& time) {}
 
-    void set_endtime(const JfrTicks& time) {}
+    void set_endtime(const MockJfrTicks& time) {}
 
     static const MockEventNetworkUtilization& get_committed(const std::string& name) {
       static MockEventNetworkUtilization placeholder;
@@ -216,6 +216,8 @@
 #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"
@@ -225,6 +227,8 @@
 #undef JfrOSInterface
 #undef JfrSerializer
 #undef JfrCheckpointWriter
+#undef JfrTicks
+#undef JfrTickspan
 
 } // anonymous namespace