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

Side by Side Diff: chrome/browser/media/router/discovery/media_sink_internal_unittest.cc

Issue 2675033002: [Media Router] Add MediaSink subtypes (Closed)
Patch Set: resolve code review comments from Mark Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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.
4
5 #include "chrome/browser/media/router/discovery/media_sink_internal.h"
6 #include "testing/gmock/include/gmock/gmock.h"
7
8 namespace media_router {
9
10 TEST(MediaSinkInternalTest, TestIsValidSinkId) {
11 EXPECT_FALSE(MediaSinkInternal::IsValidSinkId(""));
12 EXPECT_FALSE(MediaSinkInternal::IsValidSinkId("abc\x80"));
13 EXPECT_TRUE(MediaSinkInternal::IsValidSinkId("rjuKv_yxhY4jg7QBIp0kbngLjR6A"));
14 }
15
16 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698