mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove UTF8_checker from WSClient unit test.
This commit is contained in:
committed by
Nik Bougalis
parent
e5bf824c3b
commit
89c05efe22
@@ -1,4 +1,4 @@
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
This file is part of rippled: https://github.com/ripple/rippled
|
||||
Copyright (c) 2016 Ripple Labs Inc.
|
||||
@@ -21,8 +21,6 @@
|
||||
#include <ripple/test/WSClient.h>
|
||||
#include <ripple/test/jtx.h>
|
||||
#include <ripple/beast/unit_test.h>
|
||||
#include <beast/websocket/detail/utf8_checker.hpp>
|
||||
|
||||
#include <beast/handler_alloc.hpp>
|
||||
|
||||
namespace ripple {
|
||||
@@ -31,19 +29,8 @@ namespace test {
|
||||
class WSClient_test : public beast::unit_test::suite
|
||||
{
|
||||
public:
|
||||
void
|
||||
test_utf8checker()
|
||||
{
|
||||
beast::websocket::detail::utf8_checker utf8c;
|
||||
|
||||
std::uint8_t buffer[] = {0Xff};
|
||||
expect(! utf8c.write(buffer, 3));
|
||||
}
|
||||
|
||||
void run() override
|
||||
{
|
||||
test_utf8checker();
|
||||
|
||||
using namespace jtx;
|
||||
Env env(*this);
|
||||
auto wsc = makeWSClient(env.app().config());
|
||||
|
||||
Reference in New Issue
Block a user