| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/prefs/testing_pref_service.h" | |
| 14 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 18 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "components/prefs/testing_pref_service.h" |
| 19 #include "components/version_info/version_info.h" | 19 #include "components/version_info/version_info.h" |
| 20 #include "components/web_resource/notification_promo.h" | 20 #include "components/web_resource/notification_promo.h" |
| 21 #include "net/url_request/test_url_fetcher_factory.h" | 21 #include "net/url_request/test_url_fetcher_factory.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 #include "third_party/icu/source/i18n/unicode/smpdtfmt.h" | 23 #include "third_party/icu/source/i18n/unicode/smpdtfmt.h" |
| 24 | 24 |
| 25 namespace web_resource { | 25 namespace web_resource { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 510 |
| 511 TEST_F(NotificationPromoTest, PromoServerURLTest) { | 511 TEST_F(NotificationPromoTest, PromoServerURLTest) { |
| 512 GURL promo_server_url = NotificationPromo::PromoServerURL(kChannel); | 512 GURL promo_server_url = NotificationPromo::PromoServerURL(kChannel); |
| 513 EXPECT_FALSE(promo_server_url.is_empty()); | 513 EXPECT_FALSE(promo_server_url.is_empty()); |
| 514 EXPECT_TRUE(promo_server_url.is_valid()); | 514 EXPECT_TRUE(promo_server_url.is_valid()); |
| 515 EXPECT_TRUE(promo_server_url.SchemeIs(url::kHttpsScheme)); | 515 EXPECT_TRUE(promo_server_url.SchemeIs(url::kHttpsScheme)); |
| 516 // TODO(achuith): Test this better. | 516 // TODO(achuith): Test this better. |
| 517 } | 517 } |
| 518 | 518 |
| 519 } // namespace web_resource | 519 } // namespace web_resource |
| OLD | NEW |