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

Side by Side Diff: chrome/browser/media/router/media_route_unittest.cc

Issue 2112673002: Removing references to Off the Record from MediaRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More refactoring on rebased code Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/media/router/media_route.cc ('k') | chrome/browser/media/router/media_router.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "chrome/browser/media/router/media_route.h" 5 #include "chrome/browser/media/router/media_route.h"
6 #include "chrome/browser/media/router/media_sink.h" 6 #include "chrome/browser/media/router/media_sink.h"
7 #include "chrome/browser/media/router/media_source_helper.h" 7 #include "chrome/browser/media/router/media_source_helper.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 9
10 namespace { 10 namespace {
(...skipping 23 matching lines...) Expand all
34 // Same as route1 with different is_local. 34 // Same as route1 with different is_local.
35 MediaRoute route4(kRouteId1, MediaSourceForCastApp("DialApp"), "sinkId", 35 MediaRoute route4(kRouteId1, MediaSourceForCastApp("DialApp"), "sinkId",
36 "Description", true, "", false); 36 "Description", true, "", false);
37 EXPECT_TRUE(route1.Equals(route4)); 37 EXPECT_TRUE(route1.Equals(route4));
38 38
39 // The ID is different from route1's. 39 // The ID is different from route1's.
40 MediaRoute route5(kRouteId2, MediaSourceForCastApp("DialApp"), "sinkId", 40 MediaRoute route5(kRouteId2, MediaSourceForCastApp("DialApp"), "sinkId",
41 "Description", false, "", false); 41 "Description", false, "", false);
42 EXPECT_FALSE(route1.Equals(route5)); 42 EXPECT_FALSE(route1.Equals(route5));
43 43
44 // Same as route1 with different off_the_record. 44 // Same as route1 with different incognito.
45 MediaRoute route6(kRouteId1, MediaSourceForCastApp("DialApp"), "sinkId", 45 MediaRoute route6(kRouteId1, MediaSourceForCastApp("DialApp"), "sinkId",
46 "Description", true, "", false); 46 "Description", true, "", false);
47 route6.set_off_the_record(true); 47 route6.set_incognito(true);
48 EXPECT_TRUE(route1.Equals(route6)); 48 EXPECT_TRUE(route1.Equals(route6));
49 } 49 }
50 50
51 } // namespace media_router 51 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_route.cc ('k') | chrome/browser/media/router/media_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698