| 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/ui/fullscreen/fullscreen_controller_state_test.h" | 5 #include "chrome/browser/ui/fullscreen/fullscreen_controller_state_test.h" |
| 6 | 6 |
| 7 #include <memory.h> | 7 #include <memory.h> |
| 8 | 8 |
| 9 #include <iomanip> | 9 #include <iomanip> |
| 10 #include <iostream> | 10 #include <iostream> |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 // Cache result so that a search is not required next time. | 651 // Cache result so that a search is not required next time. |
| 652 state_transitions_[source][destination] = result; | 652 state_transitions_[source][destination] = result; |
| 653 } | 653 } |
| 654 | 654 |
| 655 return state_transitions_[source][destination]; | 655 return state_transitions_[source][destination]; |
| 656 } | 656 } |
| 657 | 657 |
| 658 std::string FullscreenControllerStateTest::GetAndClearDebugLog() { | 658 std::string FullscreenControllerStateTest::GetAndClearDebugLog() { |
| 659 debugging_log_ << "(End of Debugging Log)\n"; | 659 debugging_log_ << "(End of Debugging Log)\n"; |
| 660 std::string output_log = "\nDebugging Log:\n" + debugging_log_.str(); | 660 std::string output_log = "\nDebugging Log:\n" + debugging_log_.str(); |
| 661 debugging_log_.str(""); | 661 debugging_log_.str(std::string()); |
| 662 return output_log; | 662 return output_log; |
| 663 } | 663 } |
| 664 | 664 |
| 665 bool FullscreenControllerStateTest::ShouldSkipStateAndEventPair(State state, | 665 bool FullscreenControllerStateTest::ShouldSkipStateAndEventPair(State state, |
| 666 Event event) { | 666 Event event) { |
| 667 // TODO(scheib) Toggling Tab fullscreen while pending Tab or | 667 // TODO(scheib) Toggling Tab fullscreen while pending Tab or |
| 668 // Browser fullscreen is broken currently http://crbug.com/154196 | 668 // Browser fullscreen is broken currently http://crbug.com/154196 |
| 669 if ((state == STATE_TO_BROWSER_FULLSCREEN_NO_CHROME || | 669 if ((state == STATE_TO_BROWSER_FULLSCREEN_NO_CHROME || |
| 670 state == STATE_TO_BROWSER_FULLSCREEN_WITH_CHROME || | 670 state == STATE_TO_BROWSER_FULLSCREEN_WITH_CHROME || |
| 671 state == STATE_TO_TAB_FULLSCREEN) && | 671 state == STATE_TO_TAB_FULLSCREEN) && |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 << std::right << std::setw(2) | 818 << std::right << std::setw(2) |
| 819 << info.distance | 819 << info.distance |
| 820 << " }, // " | 820 << " }, // " |
| 821 << GetStateString(state2) << "\n"; | 821 << GetStateString(state2) << "\n"; |
| 822 } | 822 } |
| 823 output << "},\n"; | 823 output << "},\n"; |
| 824 } | 824 } |
| 825 output << "};"; | 825 output << "};"; |
| 826 return output.str(); | 826 return output.str(); |
| 827 } | 827 } |
| OLD | NEW |