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 "chrome/browser/printing/print_dialog_cloud.h" | 5 #include "chrome/browser/printing/print_dialog_cloud.h" |
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" | 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/file_util.h" | |
14 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
21 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
22 #include "components/cloud_devices/common/cloud_devices_urls.h" | 22 #include "components/cloud_devices/common/cloud_devices_urls.h" |
23 #include "content/public/browser/notification_details.h" | 23 #include "content/public/browser/notification_details.h" |
24 #include "content/public/browser/notification_source.h" | 24 #include "content/public/browser/notification_source.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 std::vector<WebUIMessageHandler*> handlers; | 267 std::vector<WebUIMessageHandler*> handlers; |
268 delegate_->GetWebUIMessageHandlers(&handlers); | 268 delegate_->GetWebUIMessageHandlers(&handlers); |
269 delegate_.reset(); | 269 delegate_.reset(); |
270 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); | 270 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); |
271 } | 271 } |
272 | 272 |
273 // Testing for ExternalWebDialogUI needs a mock WebContents and mock | 273 // Testing for ExternalWebDialogUI needs a mock WebContents and mock |
274 // CloudPrintWebDialogDelegate (attached to the mock web_contents). | 274 // CloudPrintWebDialogDelegate (attached to the mock web_contents). |
275 | 275 |
276 // Testing for PrintDialogCloud needs a mock Browser. | 276 // Testing for PrintDialogCloud needs a mock Browser. |
OLD | NEW |