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

Unified Diff: blimp/test/fake_engine/fake_engine_main.cc

Issue 2626423004: Remove all //blimp code. (Closed)
Patch Set: One last(?) `git merge` for good measure. Created 3 years, 11 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/fake_engine/fake_engine_app_tests.cc ('k') | blimp/test/fake_engine/proto/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/test/fake_engine/fake_engine_main.cc
diff --git a/blimp/test/fake_engine/fake_engine_main.cc b/blimp/test/fake_engine/fake_engine_main.cc
deleted file mode 100644
index 04530db3979a6582cd2a2d5bfb4a711994cf7da3..0000000000000000000000000000000000000000
--- a/blimp/test/fake_engine/fake_engine_main.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2016 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 <fcntl.h>
-
-#include "base/command_line.h"
-#include "base/logging.h"
-#include "blimp/test/fake_engine/fake_engine.h"
-#include "blimp/test/fake_engine/proto/logging.grpc.pb.h"
-
-#include "third_party/grpc/include/grpc++/grpc++.h"
-
-namespace blimp {
-
-// The Fake Engine currently after starting just sends a test log request.
-int Main() {
- FakeEngine fake_engine;
- fake_engine.Start();
-
- Logging::Stub* logging_stub = fake_engine.GetLoggingStub();
-
- LogRequest request;
- LogResponse response;
-
- request.set_message("test log message");
-
- grpc::ClientContext context;
- grpc::Status status = logging_stub->Log(&context, request, &response);
-
- if (!status.ok()) {
- LOG(ERROR) << "Log RPC failed: " << status.error_code() << ": "
- << status.error_message();
- exit(-1);
- }
- LOG(INFO) << "Log RPC success";
-
- fake_engine.WaitForShutdown();
- return 0;
-}
-
-} // namespace blimp
-
-int main(int argc, const char** argv) {
- base::CommandLine::Init(argc, argv);
- return blimp::Main();
-}
« no previous file with comments | « blimp/test/fake_engine/fake_engine_app_tests.cc ('k') | blimp/test/fake_engine/proto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698