| 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 |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 EXPECT_THAT(mock_flow_handler_.get(), IsNull()); | 348 EXPECT_THAT(mock_flow_handler_.get(), IsNull()); |
| 349 } | 349 } |
| 350 | 350 |
| 351 TEST_F(CloudPrintHtmlDialogDelegateTest, UnownedFlowLetGo) { | 351 TEST_F(CloudPrintHtmlDialogDelegateTest, UnownedFlowLetGo) { |
| 352 std::vector<WebUIMessageHandler*> handlers; | 352 std::vector<WebUIMessageHandler*> handlers; |
| 353 delegate_->GetWebUIMessageHandlers(&handlers); | 353 delegate_->GetWebUIMessageHandlers(&handlers); |
| 354 delegate_.reset(); | 354 delegate_.reset(); |
| 355 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); | 355 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); |
| 356 } | 356 } |
| 357 | 357 |
| 358 // Testing for ExternalHtmlDialogUI needs a mock TabContents, mock | 358 // Testing for ExternalHtmlDialogUI needs a mock WebContents, mock |
| 359 // CloudPrintHtmlDialogDelegate (provided through the mock | 359 // CloudPrintHtmlDialogDelegate (provided through the mock |
| 360 // tab_contents) | 360 // tab_contents) |
| 361 | 361 |
| 362 // Testing for PrintDialogCloud needs a mock Browser. | 362 // Testing for PrintDialogCloud needs a mock Browser. |
| OLD | NEW |