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> |
| 6 |
5 #include <utility> | 7 #include <utility> |
6 #include <vector> | 8 #include <vector> |
7 | 9 |
8 #include "base/bind.h" | 10 #include "base/bind.h" |
9 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
10 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
11 #include "base/prefs/testing_pref_service.h" | 13 #include "base/prefs/testing_pref_service.h" |
12 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 510 |
509 TEST_F(NotificationPromoTest, PromoServerURLTest) { | 511 TEST_F(NotificationPromoTest, PromoServerURLTest) { |
510 GURL promo_server_url = NotificationPromo::PromoServerURL(kChannel); | 512 GURL promo_server_url = NotificationPromo::PromoServerURL(kChannel); |
511 EXPECT_FALSE(promo_server_url.is_empty()); | 513 EXPECT_FALSE(promo_server_url.is_empty()); |
512 EXPECT_TRUE(promo_server_url.is_valid()); | 514 EXPECT_TRUE(promo_server_url.is_valid()); |
513 EXPECT_TRUE(promo_server_url.SchemeIs(url::kHttpsScheme)); | 515 EXPECT_TRUE(promo_server_url.SchemeIs(url::kHttpsScheme)); |
514 // TODO(achuith): Test this better. | 516 // TODO(achuith): Test this better. |
515 } | 517 } |
516 | 518 |
517 } // namespace web_resource | 519 } // namespace web_resource |
OLD | NEW |