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

Unified Diff: blimp/test/browser_tests/blimp_browser_test.cc

Issue 1958033003: Allows client to access auth token from command line specified file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds documentation Created 4 years, 7 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 | « blimp/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/test/browser_tests/blimp_browser_test.cc
diff --git a/blimp/test/browser_tests/blimp_browser_test.cc b/blimp/test/browser_tests/blimp_browser_test.cc
index 47f371955cc3b8066cb72437ce4c092f63d71627..0d66fb73030f174c87602280920c73820dec7fca 100644
--- a/blimp/test/browser_tests/blimp_browser_test.cc
+++ b/blimp/test/browser_tests/blimp_browser_test.cc
@@ -15,6 +15,8 @@
#include "base/run_loop.h"
#include "blimp/client/app/blimp_client_switches.h"
#include "blimp/client/session/assignment_source.h"
+#include "blimp/common/get_client_token.h"
+#include "blimp/common/switches.h"
#include "blimp/engine/app/blimp_browser_main_parts.h"
#include "blimp/engine/app/blimp_content_browser_client.h"
#include "blimp/engine/app/blimp_engine_config.h"
@@ -60,7 +62,8 @@ void BlimpBrowserTest::OnGetEnginePort(uint16_t port) {
client::Assignment BlimpBrowserTest::GetAssignment() {
client::Assignment assignment;
- assignment.client_token = client::kDummyClientToken;
+ assignment.client_token = GetClientToken(
+ *base::CommandLine::ForCurrentProcess());
assignment.engine_endpoint =
net::IPEndPoint(net::IPAddress::IPv4Localhost(), engine_port_);
assignment.transport_protocol = client::Assignment::TransportProtocol::TCP;
@@ -87,8 +90,7 @@ void BlimpBrowserTest::SetUpCommandLine(base::CommandLine* command_line) {
command_line->AppendSwitchASCII(blimp::engine::kEnginePort, "0");
base::FilePath src_root;
PathService::Get(base::DIR_SOURCE_ROOT, &src_root);
- command_line->AppendSwitchASCII(
- blimp::engine::kClientTokenPath,
+ command_line->AppendSwitchASCII(kClientTokenPath,
src_root.Append(kClientTokenFilePath).value());
}
« no previous file with comments | « blimp/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698