| 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/test/test_navigation_observer.h" | 5 #include "chrome/test/test_navigation_observer.h" |
| 6 | 6 |
| 7 #include "chrome/test/ui_test_utils.h" | 7 #include "chrome/test/base/ui_test_utils.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 TestNavigationObserver::JsInjectionReadyObserver::JsInjectionReadyObserver() { | 10 TestNavigationObserver::JsInjectionReadyObserver::JsInjectionReadyObserver() { |
| 11 } | 11 } |
| 12 | 12 |
| 13 TestNavigationObserver::JsInjectionReadyObserver::~JsInjectionReadyObserver() { | 13 TestNavigationObserver::JsInjectionReadyObserver::~JsInjectionReadyObserver() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 TestNavigationObserver::TestNavigationObserver( | 16 TestNavigationObserver::TestNavigationObserver( |
| 17 NavigationController* controller, | 17 NavigationController* controller, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 navigation_started_ = false; | 81 navigation_started_ = false; |
| 82 done_ = true; | 82 done_ = true; |
| 83 if (running_) | 83 if (running_) |
| 84 MessageLoopForUI::current()->Quit(); | 84 MessageLoopForUI::current()->Quit(); |
| 85 } | 85 } |
| 86 break; | 86 break; |
| 87 default: | 87 default: |
| 88 NOTREACHED(); | 88 NOTREACHED(); |
| 89 } | 89 } |
| 90 } | 90 } |
| OLD | NEW |