| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import "ios/web/web_state/ui/crw_web_controller.h" | 5 #import "ios/web/web_state/ui/crw_web_controller.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #include "base/memory/scoped_vector.h" | |
| 12 #include "base/values.h" | 11 #include "base/values.h" |
| 13 #import "ios/testing/ocmock_complex_type_helper.h" | 12 #import "ios/testing/ocmock_complex_type_helper.h" |
| 14 #include "ios/web/public/test/web_test_util.h" | 13 #include "ios/web/public/test/web_test_util.h" |
| 15 #import "ios/web/public/web_state/crw_web_controller_observer.h" | 14 #import "ios/web/public/web_state/crw_web_controller_observer.h" |
| 16 #import "ios/web/public/web_state/js/crw_js_injection_manager.h" | 15 #import "ios/web/public/web_state/js/crw_js_injection_manager.h" |
| 17 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" | 16 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" |
| 18 #import "ios/web/test/crw_fake_web_controller_observer.h" | 17 #import "ios/web/test/crw_fake_web_controller_observer.h" |
| 19 #include "ios/web/test/web_test.h" | 18 #include "ios/web/test/web_test.h" |
| 20 #include "testing/gtest_mac.h" | 19 #include "testing/gtest_mac.h" |
| 21 | 20 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 EXPECT_TRUE( | 123 EXPECT_TRUE( |
| 125 [this->fake_web_controller_observer_ commandsReceived][0]->Equals( | 124 [this->fake_web_controller_observer_ commandsReceived][0]->Equals( |
| 126 &command)); | 125 &command)); |
| 127 [this->fake_web_controller_observer_ commandsReceived].clear(); | 126 [this->fake_web_controller_observer_ commandsReceived].clear(); |
| 128 ASSERT_EQ(0U, | 127 ASSERT_EQ(0U, |
| 129 [this->fake_web_controller_observer_ commandsReceived].size()); | 128 [this->fake_web_controller_observer_ commandsReceived].size()); |
| 130 } | 129 } |
| 131 } | 130 } |
| 132 | 131 |
| 133 } // namespace | 132 } // namespace |
| OLD | NEW |