OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/metrics/rappor/sampling.h" |
| 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "url/gurl.h" |
| 9 |
| 10 namespace rappor { |
| 11 |
| 12 // Make sure recording a sample during tests, when the Rappor service is NULL, |
| 13 // doesn't cause a crash. |
| 14 TEST(RapporSamplingTest, SmokeTest) { |
| 15 SampleDomainAndRegistryFromHost(std::string(), std::string()); |
| 16 SampleDomainAndRegistryFromGURL(std::string(), GURL()); |
| 17 } |
| 18 |
| 19 } // namespace rappor |
OLD | NEW |