git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57669
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/socket.h"
#include "wx/url.h"
#include "wx/sstream.h"
#include "wx/socket.h"
#include "wx/url.h"
#include "wx/sstream.h"
-#include "wx/scopeguard.h"
#include <memory>
// --------------------------------------------------------------------------
#include <memory>
// --------------------------------------------------------------------------
+// simple helper class to log start and end of each test
+class TestLogger
+{
+public:
+ TestLogger(const wxString& name) : m_name(name)
+ {
+ wxLogMessage("=== %s test begins ===", m_name);
+ }
+
+ ~TestLogger()
+ {
+ wxLogMessage("=== %s test ends ===", m_name);
+ }
+
+private:
+ const wxString m_name;
+};
+
// --------------------------------------------------------------------------
// constants
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// constants
// --------------------------------------------------------------------------
- wxLogMessage("=== URL test begins ===");
- wxON_BLOCK_EXIT1( wxLogMessage, "=== URL test ends ===" );
+ TestLogger logtest("URL");
// Parse the URL
wxURL url(urlname);
// Parse the URL
wxURL url(urlname);