| 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 <deque> | 5 #include <deque> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "chrome/test/base/ui_test_utils.h" | 34 #include "chrome/test/base/ui_test_utils.h" |
| 35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
| 36 #include "content/public/browser/notification_source.h" | 36 #include "content/public/browser/notification_source.h" |
| 37 #include "content/public/browser/notification_types.h" | 37 #include "content/public/browser/notification_types.h" |
| 38 #include "content/public/browser/render_view_host.h" | 38 #include "content/public/browser/render_view_host.h" |
| 39 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
| 40 #include "content/public/test/browser_test_utils.h" | 40 #include "content/public/test/browser_test_utils.h" |
| 41 #include "content/public/test/test_utils.h" | 41 #include "content/public/test/test_utils.h" |
| 42 #include "googleurl/src/gurl.h" | 42 #include "googleurl/src/gurl.h" |
| 43 #include "net/base/net_util.h" | 43 #include "net/base/net_util.h" |
| 44 #include "net/test/spawned_test_server.h" | 44 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 45 #include "testing/gtest/include/gtest/gtest.h" | 45 #include "testing/gtest/include/gtest/gtest.h" |
| 46 #include "ui/base/window_open_disposition.h" | 46 #include "ui/base/window_open_disposition.h" |
| 47 | 47 |
| 48 // TODO(kbr): remove: http://crbug.com/222296 | 48 // TODO(kbr): remove: http://crbug.com/222296 |
| 49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
| 50 #import "base/mac/mac_util.h" | 50 #import "base/mac/mac_util.h" |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 #if defined(ENABLE_MESSAGE_CENTER) | 53 #if defined(ENABLE_MESSAGE_CENTER) |
| 54 #include "base/command_line.h" | 54 #include "base/command_line.h" |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 const std::deque<Balloon*>& balloons = GetActiveBalloons(); | 968 const std::deque<Balloon*>& balloons = GetActiveBalloons(); |
| 969 ASSERT_EQ(1U, balloons.size()); | 969 ASSERT_EQ(1U, balloons.size()); |
| 970 Balloon* balloon = balloons[0]; | 970 Balloon* balloon = balloons[0]; |
| 971 const Notification& notification = balloon->notification(); | 971 const Notification& notification = balloon->notification(); |
| 972 GURL EXPECTED_ICON_URL = test_server()->GetURL(kExpectedIconUrl); | 972 GURL EXPECTED_ICON_URL = test_server()->GetURL(kExpectedIconUrl); |
| 973 EXPECT_EQ(EXPECTED_ICON_URL, notification.icon_url()); | 973 EXPECT_EQ(EXPECTED_ICON_URL, notification.icon_url()); |
| 974 EXPECT_EQ(ASCIIToUTF16("Title2"), notification.title()); | 974 EXPECT_EQ(ASCIIToUTF16("Title2"), notification.title()); |
| 975 EXPECT_EQ(ASCIIToUTF16("Body2"), notification.body()); | 975 EXPECT_EQ(ASCIIToUTF16("Body2"), notification.body()); |
| 976 #endif | 976 #endif |
| 977 } | 977 } |
| OLD | NEW |