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

Unified Diff: blimp/net/fake_pipe_manager.h

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master 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/net/fake_blimp_message_processor.cc ('k') | blimp/net/fake_pipe_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/fake_pipe_manager.h
diff --git a/blimp/net/fake_pipe_manager.h b/blimp/net/fake_pipe_manager.h
deleted file mode 100644
index 4c10f889ef6bab5c1b3983ad5039aa30d0fa044e..0000000000000000000000000000000000000000
--- a/blimp/net/fake_pipe_manager.h
+++ /dev/null
@@ -1,46 +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_NET_FAKE_PIPE_MANAGER_H_
-#define BLIMP_NET_FAKE_PIPE_MANAGER_H_
-
-#include <map>
-
-#include "blimp/net/fake_blimp_message_processor.h"
-#include "blimp/net/pipe_manager.h"
-
-namespace blimp {
-
-// Stores outgoing messages in memory, and allows incoming messages to be
-// faked.
-class BLIMP_NET_EXPORT FakePipeManager : public PipeManager {
- public:
- FakePipeManager();
- ~FakePipeManager() override;
-
- std::unique_ptr<BlimpMessageProcessor> RegisterFeature(
- BlimpMessage::FeatureCase feature_case,
- BlimpMessageProcessor* incoming_processor) override;
-
- // Send a fake incoming message as though it arrived from the network.
- void SendIncomingMessage(std::unique_ptr<BlimpMessage>);
-
- // Access the outgoing message processor for a given feature in order to
- // inspect sent messages.
- FakeBlimpMessageProcessor* GetOutgoingMessageProcessor(
- BlimpMessage::FeatureCase feature_case);
-
- private:
- std::map<BlimpMessage::FeatureCase, FakeBlimpMessageProcessor*>
- outgoing_processors_;
-
- std::map<BlimpMessage::FeatureCase, BlimpMessageProcessor*>
- incoming_processors_;
-
- DISALLOW_COPY_AND_ASSIGN(FakePipeManager);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_FAKE_PIPE_MANAGER_H_
« no previous file with comments | « blimp/net/fake_blimp_message_processor.cc ('k') | blimp/net/fake_pipe_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698