| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/test/base/testing_profile.h" | 23 #include "chrome/test/base/testing_profile.h" |
| 24 #include "content/public/browser/notification_details.h" | 24 #include "content/public/browser/notification_details.h" |
| 25 #include "content/public/browser/notification_source.h" | 25 #include "content/public/browser/notification_source.h" |
| 26 #include "content/public/browser/notification_types.h" | 26 #include "content/public/browser/notification_types.h" |
| 27 #include "content/test/test_browser_thread.h" | 27 #include "content/test/test_browser_thread.h" |
| 28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 | 30 |
| 31 using content::BrowserThread; | 31 using content::BrowserThread; |
| 32 using content::WebContents; | 32 using content::WebContents; |
| 33 using content::WebUIMessageHandler; |
| 33 using testing::A; | 34 using testing::A; |
| 34 using testing::AtLeast; | 35 using testing::AtLeast; |
| 35 using testing::Eq; | 36 using testing::Eq; |
| 36 using testing::HasSubstr; | 37 using testing::HasSubstr; |
| 37 using testing::IsNull; | 38 using testing::IsNull; |
| 38 using testing::NotNull; | 39 using testing::NotNull; |
| 39 using testing::Return; | 40 using testing::Return; |
| 40 using testing::StrEq; | 41 using testing::StrEq; |
| 41 using testing::_; | 42 using testing::_; |
| 42 | 43 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 delegate_->GetWebUIMessageHandlers(&handlers); | 348 delegate_->GetWebUIMessageHandlers(&handlers); |
| 348 delegate_.reset(); | 349 delegate_.reset(); |
| 349 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); | 350 EXPECT_THAT(mock_flow_handler_.get(), NotNull()); |
| 350 } | 351 } |
| 351 | 352 |
| 352 // Testing for ExternalHtmlDialogUI needs a mock TabContents, mock | 353 // Testing for ExternalHtmlDialogUI needs a mock TabContents, mock |
| 353 // CloudPrintHtmlDialogDelegate (provided through the mock | 354 // CloudPrintHtmlDialogDelegate (provided through the mock |
| 354 // tab_contents) | 355 // tab_contents) |
| 355 | 356 |
| 356 // Testing for PrintDialogCloud needs a mock Browser. | 357 // Testing for PrintDialogCloud needs a mock Browser. |
| OLD | NEW |