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

Unified Diff: components/cast_channel/cast_test_util.h

Issue 2913033003: [cast_channel] Move cast_channel related files from //extensions to //components (Closed)
Patch Set: fix buildbot compile errors Created 3 years, 6 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 | « components/cast_channel/cast_socket_unittest.cc ('k') | components/cast_channel/cast_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cast_channel/cast_test_util.h
diff --git a/extensions/browser/api/cast_channel/cast_test_util.h b/components/cast_channel/cast_test_util.h
similarity index 84%
rename from extensions/browser/api/cast_channel/cast_test_util.h
rename to components/cast_channel/cast_test_util.h
index f70af01ff3e21eb66273a160d6304871e9bfe9b9..48273c223efe8267c194b6d2a60c64f42fc08b34 100644
--- a/extensions/browser/api/cast_channel/cast_test_util.h
+++ b/components/cast_channel/cast_test_util.h
@@ -2,27 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_
-#define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_
+#ifndef COMPONENTS_CAST_CHANNEL_CAST_TEST_UTIL_H_
+#define COMPONENTS_CAST_CHANNEL_CAST_TEST_UTIL_H_
#include <string>
#include <utility>
#include "base/macros.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "extensions/browser/api/cast_channel/cast_socket.h"
-#include "extensions/browser/api/cast_channel/cast_transport.h"
-#include "extensions/common/api/cast_channel/cast_channel.pb.h"
+#include "components/cast_channel/cast_socket.h"
+#include "components/cast_channel/cast_transport.h"
+#include "components/cast_channel/proto/cast_channel.pb.h"
#include "net/base/ip_endpoint.h"
#include "testing/gmock/include/gmock/gmock.h"
-namespace extensions {
-namespace api {
namespace cast_channel {
-extern const char kTestExtensionId[];
-
-class MockCastTransport : public extensions::api::cast_channel::CastTransport {
+class MockCastTransport : public CastTransport {
public:
MockCastTransport();
~MockCastTransport() override;
@@ -31,7 +27,7 @@ class MockCastTransport : public extensions::api::cast_channel::CastTransport {
std::unique_ptr<CastTransport::Delegate> delegate) override;
MOCK_METHOD2(SendMessage,
- void(const extensions::api::cast_channel::CastMessage& message,
+ void(const CastMessage& message,
const net::CompletionCallback& callback));
MOCK_METHOD0(Start, void(void));
@@ -121,7 +117,5 @@ ACTION_TEMPLATE(PostCompletionCallbackTask,
}
} // namespace cast_channel
-} // namespace api
-} // namespace extensions
-#endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_TEST_UTIL_H_
+#endif // COMPONENTS_CAST_CHANNEL_CAST_TEST_UTIL_H_
« no previous file with comments | « components/cast_channel/cast_socket_unittest.cc ('k') | components/cast_channel/cast_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698