| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "tools/battor_agent/battor_agent.h" | 5 #include "tools/battor_agent/battor_agent.h" |
| 6 | 6 |
| 7 #include "base/test/test_simple_task_runner.h" | 7 #include "base/test/test_simple_task_runner.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "tools/battor_agent/battor_protocol_types.h" | 11 #include "tools/battor_agent/battor_protocol_types.h" |
| 12 | 12 |
| 13 using namespace testing; | 13 using namespace testing; |
| 14 | 14 |
| 15 using std::vector; | 15 using std::vector; |
| 16 | 16 |
| 17 namespace battor { | 17 namespace battor { |
| 18 | 18 |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 | 867 |
| 868 uint32_t current_sample = 1; | 868 uint32_t current_sample = 1; |
| 869 OnMessageRead(true, BATTOR_MESSAGE_TYPE_CONTROL, | 869 OnMessageRead(true, BATTOR_MESSAGE_TYPE_CONTROL, |
| 870 ToCharVector(current_sample)); | 870 ToCharVector(current_sample)); |
| 871 | 871 |
| 872 EXPECT_TRUE(IsCommandComplete()); | 872 EXPECT_TRUE(IsCommandComplete()); |
| 873 EXPECT_EQ(BATTOR_ERROR_UNEXPECTED_MESSAGE, GetCommandError()); | 873 EXPECT_EQ(BATTOR_ERROR_UNEXPECTED_MESSAGE, GetCommandError()); |
| 874 } | 874 } |
| 875 | 875 |
| 876 } // namespace battor | 876 } // namespace battor |
| OLD | NEW |