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

Unified Diff: components/arc/test/fake_arc_bridge_bootstrap.h

Issue 1684063002: Add ArcEnabled policy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@26869593
Patch Set: Added browser test. Created 4 years, 10 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
Index: components/arc/test/fake_arc_bridge_bootstrap.h
diff --git a/components/arc/test/fake_arc_bridge_bootstrap.h b/components/arc/test/fake_arc_bridge_bootstrap.h
new file mode 100644
index 0000000000000000000000000000000000000000..3e4a476fbdcbb17a022d2ee790ee1b23e735db93
--- /dev/null
+++ b/components/arc/test/fake_arc_bridge_bootstrap.h
@@ -0,0 +1,31 @@
+// 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 COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_BOOTSTRAP_H_
+#define COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_BOOTSTRAP_H_
+
+#include "components/arc/arc_bridge_bootstrap.h"
+
+namespace arc {
+
+class FakeArcBridgeInstance;
+
+// A fake ArcBridgeBootstrap that creates a local connection.
+class FakeArcBridgeBootstrap : public ArcBridgeBootstrap {
+ public:
+ explicit FakeArcBridgeBootstrap(FakeArcBridgeInstance* instance);
+ ~FakeArcBridgeBootstrap() override {}
bartfab (slow) 2016/03/02 14:45:41 Nit: Do we really need to override this?
Polina Bondarenko 2016/03/06 20:22:34 Yes, g_bootstrap_for_testing is deleted in destruc
bartfab (slow) 2016/03/07 13:44:04 I do not understand. Yes, ArcBridgeBootstrap::~Arc
+
+ void Start() override;
bartfab (slow) 2016/03/02 14:45:41 Nit: // ArcBridgeBootstrap:
Polina Bondarenko 2016/03/06 20:22:34 Done.
+ void Stop() override;
+
+ private:
+ // Owned by the caller.
+ FakeArcBridgeInstance* instance_;
+ DISALLOW_COPY_AND_ASSIGN(FakeArcBridgeBootstrap);
bartfab (slow) 2016/03/02 14:45:41 Nit 1: Add blank line above. Nit 2: #include "base
Polina Bondarenko 2016/03/06 20:22:34 Done.
+};
+
+} // namespace arc
+
+#endif // COMPONENTS_ARC_TEST_FAKE_ARC_BRIDGE_BOOTSTRAP_H_

Powered by Google App Engine
This is Rietveld 408576698