| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chromeos/power/power_data_collector.h" | 5 #include "chrome/browser/chromeos/power/power_data_collector.h" |
| 6 #include "chromeos/dbus/dbus_thread_manager.h" | 6 #include "chromeos/dbus/dbus_thread_manager.h" |
| 7 #include "chromeos/dbus/fake_dbus_thread_manager.h" | 7 #include "chromeos/dbus/fake_dbus_thread_manager.h" |
| 8 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" | 8 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 | 12 |
| 13 class PowerDataCollectorTest : public testing::Test { | 13 class PowerDataCollectorTest : public testing::Test { |
| 14 public: | 14 public: |
| 15 PowerDataCollectorTest() : power_data_collector_(NULL) {} | 15 PowerDataCollectorTest() : power_data_collector_(NULL) {} |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 AddSample(&sample_deque, sample1); | 79 AddSample(&sample_deque, sample1); |
| 80 ASSERT_EQ(static_cast<size_t>(1), sample_deque.size()); | 80 ASSERT_EQ(static_cast<size_t>(1), sample_deque.size()); |
| 81 | 81 |
| 82 AddSample(&sample_deque, sample2); | 82 AddSample(&sample_deque, sample2); |
| 83 ASSERT_EQ(static_cast<size_t>(1), sample_deque.size()); | 83 ASSERT_EQ(static_cast<size_t>(1), sample_deque.size()); |
| 84 EXPECT_EQ(sample2.time.ToInternalValue(), | 84 EXPECT_EQ(sample2.time.ToInternalValue(), |
| 85 sample_deque[0].time.ToInternalValue()); | 85 sample_deque[0].time.ToInternalValue()); |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace chromeos | 88 } // namespace chromeos |
| OLD | NEW |