Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: device/serial/data_sink_unittest.cc

Issue 1765243002: Remove Mojo bindings environment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/device_tests.gyp ('k') | device/serial/data_source_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "device/serial/data_sender.h" 14 #include "device/serial/data_sender.h"
15 #include "device/serial/data_sink_receiver.h" 15 #include "device/serial/data_sink_receiver.h"
16 #include "device/serial/data_stream.mojom.h" 16 #include "device/serial/data_stream.mojom.h"
17 #include "mojo/public/cpp/bindings/interface_ptr.h" 17 #include "mojo/public/cpp/bindings/interface_ptr.h"
18 #include "mojo/public/cpp/environment/async_waiter.h"
19 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
20 19
21 namespace device { 20 namespace device {
22 21
23 class DataSinkTest : public testing::Test { 22 class DataSinkTest : public testing::Test {
24 public: 23 public:
25 enum Event { 24 enum Event {
26 EVENT_NONE, 25 EVENT_NONE,
27 EVENT_READ_BUFFER_READY, 26 EVENT_READ_BUFFER_READY,
28 EVENT_CANCEL_RECEIVED, 27 EVENT_CANCEL_RECEIVED,
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 sender_.reset(); 408 sender_.reset();
410 ExpectSendError(0, kFatalError); 409 ExpectSendError(0, kFatalError);
411 ExpectSendError(0, kFatalError); 410 ExpectSendError(0, kFatalError);
412 ExpectCancelResult(); 411 ExpectCancelResult();
413 if (!seen_connection_error_) 412 if (!seen_connection_error_)
414 WaitForEvent(EVENT_ERROR); 413 WaitForEvent(EVENT_ERROR);
415 EXPECT_TRUE(seen_connection_error_); 414 EXPECT_TRUE(seen_connection_error_);
416 } 415 }
417 416
418 } // namespace device 417 } // namespace device
OLDNEW
« no previous file with comments | « device/device_tests.gyp ('k') | device/serial/data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698