| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 } | 106 } |
| 107 | 107 |
| 108 void set_instance_id_for_test(const std::string& instance_id) { | 108 void set_instance_id_for_test(const std::string& instance_id) { |
| 109 instance_id_ = instance_id; | 109 instance_id_ = instance_id; |
| 110 } | 110 } |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 friend class MediaRouterFactory; | 113 friend class MediaRouterFactory; |
| 114 friend class MediaRouterMojoExtensionTest; | 114 friend class MediaRouterMojoExtensionTest; |
| 115 friend class MediaRouterMojoTest; | 115 friend class MediaRouterMojoTest; |
| 116 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, JoinRoute); |
| 117 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, JoinRouteTimedOutFails); |
| 118 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 119 JoinRouteOffTheRecordMismatchFails); |
| 120 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 121 OffTheRecordRoutesTerminatedOnProfileShutdown); |
| 116 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, | 122 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 117 RegisterAndUnregisterMediaSinksObserver); | 123 RegisterAndUnregisterMediaSinksObserver); |
| 118 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, | 124 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 119 RegisterMediaSinksObserverWithAvailabilityChange); | 125 RegisterMediaSinksObserverWithAvailabilityChange); |
| 120 FRIEND_TEST_ALL_PREFIXES( | 126 FRIEND_TEST_ALL_PREFIXES( |
| 121 MediaRouterMojoImplTest, | 127 MediaRouterMojoImplTest, |
| 122 RegisterAndUnregisterMediaSinksObserverWithAvailabilityChange); | 128 RegisterAndUnregisterMediaSinksObserverWithAvailabilityChange); |
| 123 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, | 129 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 124 RegisterAndUnregisterMediaRoutesObserver); | 130 RegisterAndUnregisterMediaRoutesObserver); |
| 125 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, HandleIssue); | 131 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, HandleIssue); |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 #endif | 421 #endif |
| 416 | 422 |
| 417 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 423 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 418 | 424 |
| 419 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 425 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 420 }; | 426 }; |
| 421 | 427 |
| 422 } // namespace media_router | 428 } // namespace media_router |
| 423 | 429 |
| 424 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 430 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |