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 #include <stddef.h> |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "base/logging.h" | 8 #include "base/logging.h" |
7 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
8 #include "base/values.h" | 10 #include "base/values.h" |
9 #include "ios/web/public/load_committed_details.h" | 11 #include "ios/web/public/load_committed_details.h" |
10 #include "ios/web/public/test/test_browser_state.h" | 12 #include "ios/web/public/test/test_browser_state.h" |
11 #include "ios/web/public/web_state/global_web_state_observer.h" | 13 #include "ios/web/public/web_state/global_web_state_observer.h" |
12 #include "ios/web/public/web_state/web_state_observer.h" | 14 #include "ios/web/public/web_state/web_state_observer.h" |
13 #include "ios/web/public/web_state/web_state_policy_decider.h" | 15 #include "ios/web/public/web_state/web_state_policy_decider.h" |
14 #include "ios/web/web_state/global_web_state_event_tracker.h" | 16 #include "ios/web/web_state/global_web_state_event_tracker.h" |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 EXPECT_FALSE( | 493 EXPECT_FALSE( |
492 web_state_->OnScriptCommandReceived(kCommand2, value_2, kUrl2, false)); | 494 web_state_->OnScriptCommandReceived(kCommand2, value_2, kUrl2, false)); |
493 EXPECT_FALSE(is_called_1); | 495 EXPECT_FALSE(is_called_1); |
494 EXPECT_TRUE(is_called_2); | 496 EXPECT_TRUE(is_called_2); |
495 | 497 |
496 web_state_->RemoveScriptCommandCallback(kPrefix2); | 498 web_state_->RemoveScriptCommandCallback(kPrefix2); |
497 } | 499 } |
498 | 500 |
499 } // namespace | 501 } // namespace |
500 } // namespace web | 502 } // namespace web |
OLD | NEW |