OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/printing/cloud_print/privet_notifications.h" | 5 #include "chrome/browser/printing/cloud_print/privet_notifications.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/message_loop/message_loop.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
11 #include "chrome/browser/notifications/notification_test_util.h" | 12 #include "chrome/browser/notifications/notification_test_util.h" |
12 #include "chrome/browser/printing/cloud_print/privet_http_asynchronous_factory.h
" | 13 #include "chrome/browser/printing/cloud_print/privet_http_asynchronous_factory.h
" |
13 #include "chrome/browser/printing/cloud_print/privet_http_impl.h" | 14 #include "chrome/browser/printing/cloud_print/privet_http_impl.h" |
14 #include "chrome/test/base/testing_browser_process.h" | 15 #include "chrome/test/base/testing_browser_process.h" |
15 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
16 #include "chrome/test/base/testing_profile_manager.h" | 17 #include "chrome/test/base/testing_profile_manager.h" |
17 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
18 #include "net/url_request/test_url_fetcher_factory.h" | 19 #include "net/url_request/test_url_fetcher_factory.h" |
19 #include "net/url_request/url_request_test_util.h" | 20 #include "net/url_request/url_request_test_util.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 311 |
311 EXPECT_EQ("", service.open_tab_url().spec()); | 312 EXPECT_EQ("", service.open_tab_url().spec()); |
312 EXPECT_EQ(0U, service.open_tab_count()); | 313 EXPECT_EQ(0U, service.open_tab_count()); |
313 EXPECT_EQ(1U, service.disable_notifications_count()); | 314 EXPECT_EQ(1U, service.disable_notifications_count()); |
314 EXPECT_EQ(0U, ui_manager()->GetNotificationCount()); | 315 EXPECT_EQ(0U, ui_manager()->GetNotificationCount()); |
315 } | 316 } |
316 | 317 |
317 } // namespace | 318 } // namespace |
318 | 319 |
319 } // namespace cloud_print | 320 } // namespace cloud_print |
OLD | NEW |