| 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 "ppapi/tests/test_view.h" | 5 #include "ppapi/tests/test_view.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "ppapi/c/pp_time.h" | 9 #include "ppapi/c/pp_time.h" |
| 10 #include "ppapi/c/dev/ppb_testing_dev.h" | 10 #include "ppapi/c/dev/ppb_testing_dev.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 desired_clip.set_height(desired_clip.height() - desired_clip.y()); | 187 desired_clip.set_height(desired_clip.height() - desired_clip.y()); |
| 188 | 188 |
| 189 PP_Time begin_time = pp::Module::Get()->core()->GetTime(); | 189 PP_Time begin_time = pp::Module::Get()->core()->GetTime(); |
| 190 while (WaitUntilViewChanged() && last_view_.GetClipRect() != desired_clip && | 190 while (WaitUntilViewChanged() && last_view_.GetClipRect() != desired_clip && |
| 191 pp::Module::Get()->core()->GetTime() - begin_time < | 191 pp::Module::Get()->core()->GetTime() - begin_time < |
| 192 kViewChangeTimeoutSec) { | 192 kViewChangeTimeoutSec) { |
| 193 } | 193 } |
| 194 ASSERT_TRUE(last_view_.GetClipRect() == desired_clip); | 194 ASSERT_TRUE(last_view_.GetClipRect() == desired_clip); |
| 195 PASS(); | 195 PASS(); |
| 196 } | 196 } |
| OLD | NEW |