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

Unified Diff: chrome/browser/media/router/media_router_mojo_test.h

Issue 1826403002: [Media Router] Moves mojo-specific code into mojo/ folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/media/router/media_router_mojo_test.h
diff --git a/chrome/browser/media/router/media_router_mojo_test.h b/chrome/browser/media/router/media_router_mojo_test.h
deleted file mode 100644
index de05a43b7c99d32d27449094330127c5d2e12f13..0000000000000000000000000000000000000000
--- a/chrome/browser/media/router/media_router_mojo_test.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2015 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 CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_TEST_H_
-#define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_TEST_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop.h"
-#include "chrome/browser/media/router/media_router_mojo_impl.h"
-#include "chrome/browser/media/router/mock_media_router.h"
-#include "chrome/browser/media/router/test_helper.h"
-#include "chrome/test/base/testing_profile.h"
-#include "extensions/common/extension.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace media_router {
-
-class MediaRouterMojoImpl;
-class MessagePump;
-
-// Tests the API call flow between the MediaRouterMojoImpl and the Media Router
-// Mojo service in both directions.
-class MediaRouterMojoTest : public ::testing::Test {
- public:
- MediaRouterMojoTest();
- ~MediaRouterMojoTest() override;
-
- protected:
- void SetUp() override;
-
- void ProcessEventLoop();
-
- void ConnectProviderManagerService();
-
- const std::string& extension_id() const { return extension_->id(); }
-
- MediaRouterMojoImpl* router() const { return mock_media_router_.get(); }
-
- // Mock objects.
- MockMediaRouteProvider mock_media_route_provider_;
- testing::NiceMock<MockEventPageTracker> mock_event_page_tracker_;
-
- // Mojo proxy object for |mock_media_router_|
- media_router::interfaces::MediaRouterPtr media_router_proxy_;
-
- private:
- scoped_refptr<extensions::Extension> extension_;
- scoped_ptr<MediaRouterMojoImpl> mock_media_router_;
- scoped_ptr<mojo::Binding<interfaces::MediaRouteProvider>> binding_;
- base::MessageLoop message_loop_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoTest);
-};
-
-} // namespace media_router
-
-#endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_TEST_H_

Powered by Google App Engine
This is Rietveld 408576698