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/notifications/sync_notifier/notification_bitmap_fetcher
.h" | 5 #include "chrome/browser/notifications/sync_notifier/notification_bitmap_fetcher
.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/test/base/in_process_browser_test.h" | 9 #include "chrome/test/base/in_process_browser_test.h" |
10 #include "content/public/browser/browser_thread.h" | |
11 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
12 #include "net/http/http_status_code.h" | 11 #include "net/http/http_status_code.h" |
13 #include "net/url_request/test_url_fetcher_factory.h" | 12 #include "net/url_request/test_url_fetcher_factory.h" |
14 #include "net/url_request/url_fetcher.h" | 13 #include "net/url_request/url_fetcher.h" |
15 #include "net/url_request/url_request_status.h" | 14 #include "net/url_request/url_request_status.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
18 #include "ui/gfx/codec/png_codec.h" | 17 #include "ui/gfx/codec/png_codec.h" |
19 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
20 #include "ui/gfx/skia_util.h" | 19 #include "ui/gfx/skia_util.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 193 |
195 fetcher.Start(browser()->profile()); | 194 fetcher.Start(browser()->profile()); |
196 | 195 |
197 // Blocks until test delegate is notified via a callback. | 196 // Blocks until test delegate is notified via a callback. |
198 content::RunMessageLoop(); | 197 content::RunMessageLoop(); |
199 | 198 |
200 EXPECT_FALSE(delegate.success()); | 199 EXPECT_FALSE(delegate.success()); |
201 } | 200 } |
202 | 201 |
203 } // namespace notifier | 202 } // namespace notifier |
OLD | NEW |