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

Unified Diff: components/cast_channel/cast_test_util.cc

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_test_util.h ('k') | components/cast_channel/cast_transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cast_channel/cast_test_util.cc
diff --git a/extensions/browser/api/cast_channel/cast_test_util.cc b/components/cast_channel/cast_test_util.cc
similarity index 61%
rename from extensions/browser/api/cast_channel/cast_test_util.cc
rename to components/cast_channel/cast_test_util.cc
index d5406b0f9fbc39a9ea860fb9aa7021398563e8db..6ae2d0375f8b0968d731e1384bb957ed78e8a353 100644
--- a/extensions/browser/api/cast_channel/cast_test_util.cc
+++ b/components/cast_channel/cast_test_util.cc
@@ -2,22 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "extensions/browser/api/cast_channel/cast_test_util.h"
+#include "components/cast_channel/cast_test_util.h"
#include <utility>
#include "net/base/ip_address.h"
-namespace extensions {
-namespace api {
namespace cast_channel {
-const char kTestExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf";
-
-MockCastTransport::MockCastTransport() {
-}
-MockCastTransport::~MockCastTransport() {
-}
+MockCastTransport::MockCastTransport() {}
+MockCastTransport::~MockCastTransport() {}
CastTransport::Delegate* MockCastTransport::current_delegate() const {
CHECK(delegate_);
@@ -29,19 +23,14 @@ void MockCastTransport::SetReadDelegate(
delegate_ = std::move(delegate);
}
-MockCastTransportDelegate::MockCastTransportDelegate() {
-}
-MockCastTransportDelegate::~MockCastTransportDelegate() {
-}
+MockCastTransportDelegate::MockCastTransportDelegate() {}
+MockCastTransportDelegate::~MockCastTransportDelegate() {}
MockCastSocket::MockCastSocket() : mock_transport_(new MockCastTransport()) {}
-MockCastSocket::~MockCastSocket() {
-}
+MockCastSocket::~MockCastSocket() {}
net::IPEndPoint CreateIPEndPointForTest() {
return net::IPEndPoint(net::IPAddress(192, 168, 1, 1), 8009);
}
} // namespace cast_channel
-} // namespace api
-} // namespace extensions
« no previous file with comments | « components/cast_channel/cast_test_util.h ('k') | components/cast_channel/cast_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698