| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include <memory> |
| 6 #include <sstream> | 6 #include <sstream> |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "blimp/common/create_blimp_message.h" | 11 #include "blimp/common/create_blimp_message.h" |
| 12 #include "blimp/common/logging.h" | 12 #include "blimp/common/logging.h" |
| 13 #include "blimp/common/proto/blimp_message.pb.h" | 13 #include "blimp/common/proto/blimp_message.pb.h" |
| 14 #include "blimp/common/proto/blob_channel.pb.h" | 14 #include "blimp/common/proto/blob_channel.pb.h" |
| 15 #include "blimp/net/test_common.h" | |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 17 |
| 19 using testing::Return; | 18 using testing::Return; |
| 20 | 19 |
| 21 namespace blimp { | 20 namespace blimp { |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 const int kTargetTab = 123; | 23 const int kTargetTab = 123; |
| 25 | 24 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // Test SET_TEXT. | 312 // Test SET_TEXT. |
| 314 message.mutable_ime()->set_type(ImeMessage::SET_TEXT); | 313 message.mutable_ime()->set_type(ImeMessage::SET_TEXT); |
| 315 message.mutable_ime()->set_ime_text("1234"); | 314 message.mutable_ime()->set_ime_text("1234"); |
| 316 VerifyLogOutput( | 315 VerifyLogOutput( |
| 317 "type=IME render_widget_id=1 subtype=SET_TEXT ime_text(length)=4", | 316 "type=IME render_widget_id=1 subtype=SET_TEXT ime_text(length)=4", |
| 318 message); | 317 message); |
| 319 } | 318 } |
| 320 | 319 |
| 321 } // namespace | 320 } // namespace |
| 322 } // namespace blimp | 321 } // namespace blimp |
| OLD | NEW |