| 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_frame/test/automation_client_mock.h" | 5 #include "chrome_frame/test/automation_client_mock.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "chrome/common/automation_messages.h" |
| 8 #include "chrome_frame/custom_sync_call_context.h" | 9 #include "chrome_frame/custom_sync_call_context.h" |
| 9 #include "chrome_frame/navigation_constraints.h" | 10 #include "chrome_frame/navigation_constraints.h" |
| 10 #include "chrome_frame/test/chrome_frame_test_utils.h" | 11 #include "chrome_frame/test/chrome_frame_test_utils.h" |
| 11 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 12 | 13 |
| 13 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING | 14 #define GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING |
| 14 #include "testing/gmock_mutant.h" | 15 #include "testing/gmock_mutant.h" |
| 15 | 16 |
| 16 using testing::_; | 17 using testing::_; |
| 17 using testing::CreateFunctor; | 18 using testing::CreateFunctor; |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 GURL("http://www.nonexistent.com"), empty, profile_path_, | 472 GURL("http://www.nonexistent.com"), empty, profile_path_, |
| 472 profile_path_.BaseName().value(), L"", L"", false, false, false)); | 473 profile_path_.BaseName().value(), L"", L"", false, false, false)); |
| 473 launch_params->set_launch_timeout(timeout); | 474 launch_params->set_launch_timeout(timeout); |
| 474 launch_params->set_version_check(false); | 475 launch_params->set_version_check(false); |
| 475 EXPECT_TRUE(client_->Initialize(&cfd_, launch_params)); | 476 EXPECT_TRUE(client_->Initialize(&cfd_, launch_params)); |
| 476 loop_.RunFor(10); | 477 loop_.RunFor(10); |
| 477 | 478 |
| 478 EXPECT_CALL(mock_proxy_, ReleaseTabProxy(testing::Eq(tab_handle_))).Times(1); | 479 EXPECT_CALL(mock_proxy_, ReleaseTabProxy(testing::Eq(tab_handle_))).Times(1); |
| 479 client_->Uninitialize(); | 480 client_->Uninitialize(); |
| 480 } | 481 } |
| OLD | NEW |