| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/notifications/notification.h" | 10 #include "chrome/browser/notifications/notification.h" |
| 11 #include "chrome/browser/notifications/notification_test_util.h" | 11 #include "chrome/browser/notifications/notification_test_util.h" |
| 12 #include "chrome/browser/notifications/notification_ui_manager.h" | 12 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 13 #include "chrome/browser/notifications/sync_notifier/sync_notifier_test_utils.h" | 13 #include "chrome/browser/notifications/sync_notifier/sync_notifier_test_utils.h" |
| 14 #include "chrome/browser/notifications/sync_notifier/synced_notification.h" | 14 #include "chrome/browser/notifications/sync_notifier/synced_notification.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 17 #include "content/public/test/test_browser_thread.h" | 17 #include "content/public/test/test_browser_thread.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 | 415 |
| 416 notification1_->QueueBitmapFetchJobs(¬ification_manager, NULL, NULL); | 416 notification1_->QueueBitmapFetchJobs(¬ification_manager, NULL, NULL); |
| 417 | 417 |
| 418 // There should be 4 urls in the queue, icon, image, and two buttons. | 418 // There should be 4 urls in the queue, icon, image, and two buttons. |
| 419 EXPECT_EQ(4, notification1_->active_fetcher_count_); | 419 EXPECT_EQ(4, notification1_->active_fetcher_count_); |
| 420 } | 420 } |
| 421 | 421 |
| 422 // TODO(petewil): Add a test for a notification being read and or deleted. | 422 // TODO(petewil): Add a test for a notification being read and or deleted. |
| 423 | 423 |
| 424 } // namespace notifier | 424 } // namespace notifier |
| OLD | NEW |