8206006: Build failed on Windows
authorjwilhelm
Thu, 28 Jun 2018 22:28:41 +0200
changeset 50894 e8d55141afd2
parent 50893 1ecd78e0f56b
child 50895 83ed34655f59
child 51164 b94063762a7c
8206006: Build failed on Windows Reviewed-by: jwilhelm, dcubed Contributed-by: robin.westberg@oracle.com
test/hotspot/gtest/jfr/test_networkUtilization.cpp
--- 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