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

Unified Diff: content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h

Issue 1815483003: bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo
Patch Set: MMerge with ToT Created 4 years, 9 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: content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h
diff --git a/content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h b/content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..199ecdbda90e84d246cf7a8adc459581b6b09aca
--- /dev/null
+++ b/content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h
@@ -0,0 +1,40 @@
+// 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 CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_FAKE_ADAPTER_SETTER_IMPL_H_
+#define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_FAKE_ADAPTER_SETTER_IMPL_H_
+
+#include "base/macros.h"
+#include "content/shell/common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+namespace content {
+class RenderProcessHost;
+
+class LayoutTestBluetoothFakeAdapterSetterImpl
+ : public mojom::LayoutTestBluetoothFakeAdapterSetter {
+ public:
+ static void Create(
+ int render_process_id,
+ mojom::LayoutTestBluetoothFakeAdapterSetterRequest request);
+
+ private:
+ LayoutTestBluetoothFakeAdapterSetterImpl(
+ int render_process_id,
+ mojom::LayoutTestBluetoothFakeAdapterSetterRequest request);
+ ~LayoutTestBluetoothFakeAdapterSetterImpl() override;
+
+ void Set(const mojo::String& adapter_name,
+ const SetCallback& callback) override;
+
+ int render_process_id_;
+
+ mojo::StrongBinding<LayoutTestBluetoothFakeAdapterSetter> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(LayoutTestBluetoothFakeAdapterSetterImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_BLUETOOTH_FAKE_ADAPTER_SETTER_IMPL_H_
« no previous file with comments | « content/shell/BUILD.gn ('k') | content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698