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

Side by Side Diff: extensions/browser/api/cast_channel/cast_channel_api_unittest.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/api/cast_channel/cast_channel_api.h" 5 #include "extensions/browser/api/cast_channel/cast_channel_api.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 namespace core_api { 12 namespace api {
13 namespace cast_channel { 13 namespace cast_channel {
14 14
15 // Tests parsing of ConnectInfo. 15 // Tests parsing of ConnectInfo.
16 TEST(CastChannelOpenFunctionTest, TestParseConnectInfo) { 16 TEST(CastChannelOpenFunctionTest, TestParseConnectInfo) {
17 typedef CastChannelOpenFunction ccof; 17 typedef CastChannelOpenFunction ccof;
18 scoped_ptr<net::IPEndPoint> ip_endpoint; 18 scoped_ptr<net::IPEndPoint> ip_endpoint;
19 19
20 // Valid ConnectInfo 20 // Valid ConnectInfo
21 ConnectInfo connect_info; 21 ConnectInfo connect_info;
22 connect_info.ip_address = "192.0.0.1"; 22 connect_info.ip_address = "192.0.0.1";
23 connect_info.port = 8009; 23 connect_info.port = 8009;
24 connect_info.auth = CHANNEL_AUTH_TYPE_SSL; 24 connect_info.auth = CHANNEL_AUTH_TYPE_SSL;
25 25
26 ip_endpoint.reset(ccof::ParseConnectInfo(connect_info)); 26 ip_endpoint.reset(ccof::ParseConnectInfo(connect_info));
27 EXPECT_TRUE(ip_endpoint); 27 EXPECT_TRUE(ip_endpoint);
28 EXPECT_EQ(ip_endpoint->ToString(), "192.0.0.1:8009"); 28 EXPECT_EQ(ip_endpoint->ToString(), "192.0.0.1:8009");
29 } 29 }
30 30
31 } // namespace cast_channel 31 } // namespace cast_channel
32 } // namespace core_api 32 } // namespace api
33 } // namespace extensions 33 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_channel_api.cc ('k') | extensions/browser/api/cast_channel/cast_channel_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698