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

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

Issue 2000883003: Fixes Blimp engine browser test due to reading client token file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | 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 0d66fb73030f174c87602280920c73820dec7fca..dfbfc18eba901f728e8687a2050a4a19d90ec1de 100644
--- a/blimp/test/browser_tests/blimp_browser_test.cc
+++ b/blimp/test/browser_tests/blimp_browser_test.cc
@@ -15,7 +15,6 @@
#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"
@@ -31,6 +30,7 @@ namespace blimp {
namespace {
const char kTestDataFilePath[] = "blimp/test/data";
const char kClientTokenFilePath[] = "blimp/test/data/test_client_token";
+const char kClientToken[] = "MyVoiceIsMyPassport";
} // namespace
BlimpBrowserTest::BlimpBrowserTest() {
@@ -62,8 +62,7 @@ void BlimpBrowserTest::OnGetEnginePort(uint16_t port) {
client::Assignment BlimpBrowserTest::GetAssignment() {
client::Assignment assignment;
- assignment.client_token = GetClientToken(
- *base::CommandLine::ForCurrentProcess());
+ assignment.client_token = kClientToken;
assignment.engine_endpoint =
net::IPEndPoint(net::IPAddress::IPv4Localhost(), engine_port_);
assignment.transport_protocol = client::Assignment::TransportProtocol::TCP;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698