| 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 <queue> | 5 #include <queue> |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" |
| 9 #include "base/task.h" | |
| 10 #include "content/browser/device_orientation/data_fetcher.h" | 9 #include "content/browser/device_orientation/data_fetcher.h" |
| 11 #include "content/browser/device_orientation/orientation.h" | 10 #include "content/browser/device_orientation/orientation.h" |
| 12 #include "content/browser/device_orientation/provider.h" | 11 #include "content/browser/device_orientation/provider.h" |
| 13 #include "content/browser/device_orientation/provider_impl.h" | 12 #include "content/browser/device_orientation/provider_impl.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 14 |
| 16 namespace device_orientation { | 15 namespace device_orientation { |
| 17 namespace { | 16 namespace { |
| 18 | 17 |
| 19 // Class for checking expectations on orientation updates from the Provider. | 18 // Class for checking expectations on orientation updates from the Provider. |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 checker_b->AddExpectation(third_orientation); | 380 checker_b->AddExpectation(third_orientation); |
| 382 MessageLoop::current()->Run(); | 381 MessageLoop::current()->Run(); |
| 383 | 382 |
| 384 provider_->RemoveObserver(checker_a.get()); | 383 provider_->RemoveObserver(checker_a.get()); |
| 385 provider_->RemoveObserver(checker_b.get()); | 384 provider_->RemoveObserver(checker_b.get()); |
| 386 } | 385 } |
| 387 | 386 |
| 388 } // namespace | 387 } // namespace |
| 389 | 388 |
| 390 } // namespace device_orientation | 389 } // namespace device_orientation |
| OLD | NEW |