Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1408)

Unified Diff: remoting/base/auth_token_util_unittest.cc

Issue 959033004: Remove ClientLogin support from remoting host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/auth_token_util.cc ('k') | remoting/base/constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auth_token_util_unittest.cc
diff --git a/remoting/base/auth_token_util_unittest.cc b/remoting/base/auth_token_util_unittest.cc
deleted file mode 100644
index 2732b441da4fb78d05b9a4af8f8f0faf70d32be1..0000000000000000000000000000000000000000
--- a/remoting/base/auth_token_util_unittest.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "remoting/base/auth_token_util.h"
-#include "remoting/base/constants.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace remoting {
-namespace {
-
-TEST(AuthTokenUtilTest, ParseAuthTokenWithService) {
- std::string auth_token;
- std::string auth_service;
-
- ParseAuthTokenWithService("service:token", &auth_token, &auth_service);
- EXPECT_EQ("token", auth_token);
- EXPECT_EQ("service", auth_service);
-
- // Check for legacy support.
- ParseAuthTokenWithService("token2", &auth_token, &auth_service);
- EXPECT_EQ("token2", auth_token);
- EXPECT_EQ(std::string(kChromotingTokenDefaultServiceName), auth_service);
-
- ParseAuthTokenWithService("just_service:", &auth_token, &auth_service);
- EXPECT_EQ("", auth_token);
- EXPECT_EQ("just_service", auth_service);
-
- ParseAuthTokenWithService("yay:token:has:colons", &auth_token, &auth_service);
- EXPECT_EQ("token:has:colons", auth_token);
- EXPECT_EQ("yay", auth_service);
-}
-
-} // namespace
-
-} // namespace remoting
« no previous file with comments | « remoting/base/auth_token_util.cc ('k') | remoting/base/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698