| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/api/dial/dial_device_data.h" | 5 #include "chrome/browser/extensions/api/dial/dial_device_data.h" |
| 6 #include "chrome/common/extensions/api/dial.h" | 6 #include "chrome/common/extensions/api/dial.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 EXPECT_TRUE(DialDeviceData::IsDeviceDescriptionUrl( | 89 EXPECT_TRUE(DialDeviceData::IsDeviceDescriptionUrl( |
| 90 GURL("http://some.device.com/dd.xml"))); | 90 GURL("http://some.device.com/dd.xml"))); |
| 91 EXPECT_TRUE(DialDeviceData::IsDeviceDescriptionUrl( | 91 EXPECT_TRUE(DialDeviceData::IsDeviceDescriptionUrl( |
| 92 GURL("https://some.device.com/dd.xml"))); | 92 GURL("https://some.device.com/dd.xml"))); |
| 93 EXPECT_TRUE(DialDeviceData::IsDeviceDescriptionUrl( | 93 EXPECT_TRUE(DialDeviceData::IsDeviceDescriptionUrl( |
| 94 GURL("http://192.168.1.1:1234/dd.xml"))); | 94 GURL("http://192.168.1.1:1234/dd.xml"))); |
| 95 EXPECT_TRUE(DialDeviceData::IsDeviceDescriptionUrl( | 95 EXPECT_TRUE(DialDeviceData::IsDeviceDescriptionUrl( |
| 96 GURL("https://192.168.1.1:1234/dd.xml"))); | 96 GURL("https://192.168.1.1:1234/dd.xml"))); |
| 97 | 97 |
| 98 EXPECT_FALSE(DialDeviceData::IsDeviceDescriptionUrl(GURL())); | 98 EXPECT_FALSE(DialDeviceData::IsDeviceDescriptionUrl(GURL())); |
| 99 EXPECT_FALSE(DialDeviceData::IsDeviceDescriptionUrl(GURL(""))); | 99 EXPECT_FALSE(DialDeviceData::IsDeviceDescriptionUrl(GURL(std::string()))); |
| 100 EXPECT_FALSE(DialDeviceData::IsDeviceDescriptionUrl( | 100 EXPECT_FALSE( |
| 101 GURL("file://path/to/file"))); | 101 DialDeviceData::IsDeviceDescriptionUrl(GURL("file://path/to/file"))); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace extensions | 104 } // namespace extensions |
| OLD | NEW |