Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / media / router / route_id_manager_unittest.cc
blob46da03e9078af0a7877e278d96a47e1a9f6a3f69
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
3 // found in the LICENSE file.
5 #include "chrome/browser/media/router/route_id_manager.h"
6 #include "testing/gmock/include/gmock/gmock.h"
8 namespace media_router {
10 TEST(RouteIDManagerTest, ForLocalRoute) {
11 // Singleton instance is left unused for better test isolation.
12 RouteIDManager manager1;
13 EXPECT_EQ("route-local-0", manager1.ForLocalRoute());
14 EXPECT_EQ("route-local-1", manager1.ForLocalRoute());
16 RouteIDManager manager2;
17 EXPECT_EQ("route-local-0", manager2.ForLocalRoute());
20 } // namespace media_router