Skip to content
Snippets Groups Projects
Commit 02a533bc authored by Parker, Peter's avatar Parker, Peter
Browse files

Refs #22608 - Let clang-format do its thing.

I should probably get round to working out how to call it locally...
parent 148a232f
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,7 @@ ONCat::ONCat(const ONCat &other)
: m_url(other.m_url), m_tokenStore(other.m_tokenStore),
m_clientId(other.m_clientId), m_clientSecret(other.m_clientSecret),
m_flow(other.m_flow),
m_internetHelper(other.m_internetHelper) {}
m_flow(other.m_flow), m_internetHelper(other.m_internetHelper) {}
ONCat::~ONCat() {}
......
......@@ -275,11 +275,10 @@ public:
auto mock_oncat_api = make_mock_oncat_api(
{{DUMMY_URL + "/api/instruments/HB2C?facility=HFIR",
std::make_pair(HTTPResponse::HTTP_OK,
"{\"facility\": \"HFIR\","
"\"name\": \"HB2C\","
"\"id\": \"HB2C\","
"\"type\": \"instrument\"}")}});
std::make_pair(HTTPResponse::HTTP_OK, "{\"facility\": \"HFIR\","
"\"name\": \"HB2C\","
"\"id\": \"HB2C\","
"\"type\": \"instrument\"}")}});
oncat.setInternetHelper(mock_oncat_api);
......@@ -363,11 +362,10 @@ public:
"\"access_token\": \"2KSL5aEnLvIudMHIjc7LcBWBCfxOHZ\", "
"\"scope\": \"api:read data:read settings:read\"}")},
{DUMMY_URL + "/api/instruments/HB2C?facility=HFIR",
std::make_pair(HTTPResponse::HTTP_OK,
"{\"facility\": \"HFIR\","
"\"name\": \"HB2C\","
"\"id\": \"HB2C\","
"\"type\": \"instrument\"}")}});
std::make_pair(HTTPResponse::HTTP_OK, "{\"facility\": \"HFIR\","
"\"name\": \"HB2C\","
"\"id\": \"HB2C\","
"\"type\": \"instrument\"}")}});
oncat.setInternetHelper(mock_oncat_api);
......@@ -378,11 +376,10 @@ public:
mock_oncat_api = make_mock_oncat_api({{
DUMMY_URL + "/oauth/token",
std::make_pair(
HTTPResponse::HTTP_OK,
"{\"token_type\": \"Bearer\", \"expires_in\": 3600, "
"\"access_token\": \"987JHGFiusdvs72fAkjhsKJH32tkjk\", "
"\"scope\": \"api:read data:read settings:read\"}"), }});
std::make_pair(HTTPResponse::HTTP_OK,
"{\"token_type\": \"Bearer\", \"expires_in\": 3600, "
"\"access_token\": \"987JHGFiusdvs72fAkjhsKJH32tkjk\", "
"\"scope\": \"api:read data:read settings:read\"}"), }});
oncat.setInternetHelper(mock_oncat_api);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment