| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 118 } |
| 119 | 119 |
| 120 void set_instance_id_for_test(const std::string& instance_id) { | 120 void set_instance_id_for_test(const std::string& instance_id) { |
| 121 instance_id_ = instance_id; | 121 instance_id_ = instance_id; |
| 122 } | 122 } |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 friend class MediaRouterFactory; | 125 friend class MediaRouterFactory; |
| 126 friend class MediaRouterMojoExtensionTest; | 126 friend class MediaRouterMojoExtensionTest; |
| 127 friend class MediaRouterMojoTest; | 127 friend class MediaRouterMojoTest; |
| 128 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, JoinRoute); |
| 129 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, JoinRouteTimedOutFails); |
| 130 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 131 JoinRouteOffTheRecordMismatchFails); |
| 132 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 133 OffTheRecordRoutesTerminatedOnProfileShutdown); |
| 128 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, | 134 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 129 RegisterAndUnregisterMediaSinksObserver); | 135 RegisterAndUnregisterMediaSinksObserver); |
| 130 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, | 136 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 131 RegisterMediaSinksObserverWithAvailabilityChange); | 137 RegisterMediaSinksObserverWithAvailabilityChange); |
| 132 FRIEND_TEST_ALL_PREFIXES( | 138 FRIEND_TEST_ALL_PREFIXES( |
| 133 MediaRouterMojoImplTest, | 139 MediaRouterMojoImplTest, |
| 134 RegisterAndUnregisterMediaSinksObserverWithAvailabilityChange); | 140 RegisterAndUnregisterMediaSinksObserverWithAvailabilityChange); |
| 135 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, | 141 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, |
| 136 RegisterAndUnregisterMediaRoutesObserver); | 142 RegisterAndUnregisterMediaRoutesObserver); |
| 137 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, HandleIssue); | 143 FRIEND_TEST_ALL_PREFIXES(MediaRouterMojoImplTest, HandleIssue); |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 #endif | 449 #endif |
| 444 | 450 |
| 445 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 451 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 446 | 452 |
| 447 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 453 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 448 }; | 454 }; |
| 449 | 455 |
| 450 } // namespace media_router | 456 } // namespace media_router |
| 451 | 457 |
| 452 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 458 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |