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

Unified Diff: blimp/test/fake_engine/fake_engine.h

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/BUILD.gn ('k') | blimp/test/fake_engine/fake_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/test/fake_engine/fake_engine.h
diff --git a/blimp/test/fake_engine/fake_engine.h b/blimp/test/fake_engine/fake_engine.h
deleted file mode 100644
index c73a3f04b427954b21c63d19e36aa9ebbefc2577..0000000000000000000000000000000000000000
--- a/blimp/test/fake_engine/fake_engine.h
+++ /dev/null
@@ -1,61 +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.
-
-#ifndef BLIMP_TEST_FAKE_ENGINE_FAKE_ENGINE_H_
-#define BLIMP_TEST_FAKE_ENGINE_FAKE_ENGINE_H_
-
-#include "blimp/test/fake_engine/proto/engine.grpc.pb.h"
-#include "blimp/test/fake_engine/proto/lifetime.grpc.pb.h"
-#include "blimp/test/fake_engine/proto/logging.grpc.pb.h"
-#include "third_party/grpc/include/grpc++/grpc++.h"
-
-namespace blimp {
-
-// FD to serve the Engine API on
-const int kEngineListenFd = 3;
-
-// FD on which the Rendering Server API is served
-const int kRenderingServerListenFd = 4;
-
-class EngineServiceImpl final : public Engine::Service {
- public:
- grpc::Status CheckHealth(
- grpc::ServerContext* context,
- const CheckHealthRequest* request,
- CheckHealthResponse* response) override;
-
- grpc::Status ShutDown(grpc::ServerContext* context,
- const ShutDownRequest* request,
- ShutDownResponse* response) override;
-};
-
-class FakeEngine {
- public:
- FakeEngine();
- ~FakeEngine();
-
- // Starts the FakeEngine.
- void Start();
-
- // Waits until the FakeEngine gRPC service is shut down. As gRPC++ doesn't
- // support clean shut down yet, this actually never returns.
- void WaitForShutdown();
-
- // The following methods return the stubs for communication with rendering
- // server. They must not be called before Start() method.
- Lifetime::Stub* GetLifetimeStub();
- Logging::Stub* GetLoggingStub();
-
- private:
- std::unique_ptr<grpc::Server> grpc_server_;
- EngineServiceImpl engine_service_;
-
- std::shared_ptr<grpc::Channel> rendering_server_channel_;
- std::unique_ptr<Lifetime::Stub> lifetime_stub_;
- std::unique_ptr<Logging::Stub> logging_stub_;
-};
-
-} // namespace blimp
-
-#endif // BLIMP_TEST_FAKE_ENGINE_FAKE_ENGINE_H_
« no previous file with comments | « blimp/test/fake_engine/BUILD.gn ('k') | blimp/test/fake_engine/fake_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698