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

Side by Side Diff: extensions/renderer/api/serial/serial_api_unittest.cc

Issue 685503002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 "device/serial/serial_device_enumerator.h" 5 #include "device/serial/serial_device_enumerator.h"
6 #include "device/serial/serial_service_impl.h" 6 #include "device/serial/serial_service_impl.h"
7 #include "device/serial/test_serial_io_handler.h" 7 #include "device/serial/test_serial_io_handler.h"
8 #include "extensions/renderer/api_test_base.h" 8 #include "extensions/renderer/api_test_base.h"
9 #include "grit/extensions_renderer_resources.h" 9 #include "grit/extensions_renderer_resources.h"
10 10
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 DISALLOW_COPY_AND_ASSIGN(BlockSendsForeverSendIoHandler); 388 DISALLOW_COPY_AND_ASSIGN(BlockSendsForeverSendIoHandler);
389 }; 389 };
390 390
391 } // namespace 391 } // namespace
392 392
393 class SerialApiTest : public ApiTestBase { 393 class SerialApiTest : public ApiTestBase {
394 public: 394 public:
395 SerialApiTest() {} 395 SerialApiTest() {}
396 396
397 virtual void SetUp() override { 397 void SetUp() override {
398 ApiTestBase::SetUp(); 398 ApiTestBase::SetUp();
399 env()->RegisterModule("async_waiter", IDR_ASYNC_WAITER_JS); 399 env()->RegisterModule("async_waiter", IDR_ASYNC_WAITER_JS);
400 env()->RegisterModule("data_receiver", IDR_DATA_RECEIVER_JS); 400 env()->RegisterModule("data_receiver", IDR_DATA_RECEIVER_JS);
401 env()->RegisterModule("data_sender", IDR_DATA_SENDER_JS); 401 env()->RegisterModule("data_sender", IDR_DATA_SENDER_JS);
402 env()->RegisterModule("serial", IDR_SERIAL_CUSTOM_BINDINGS_JS); 402 env()->RegisterModule("serial", IDR_SERIAL_CUSTOM_BINDINGS_JS);
403 env()->RegisterModule("serial_service", IDR_SERIAL_SERVICE_JS); 403 env()->RegisterModule("serial_service", IDR_SERIAL_SERVICE_JS);
404 env()->RegisterModule("device/serial/data_stream.mojom", 404 env()->RegisterModule("device/serial/data_stream.mojom",
405 IDR_DATA_STREAM_MOJOM_JS); 405 IDR_DATA_STREAM_MOJOM_JS);
406 env()->RegisterModule("device/serial/data_stream_serialization.mojom", 406 env()->RegisterModule("device/serial/data_stream_serialization.mojom",
407 IDR_DATA_STREAM_SERIALIZATION_MOJOM_JS); 407 IDR_DATA_STREAM_SERIALIZATION_MOJOM_JS);
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 634
635 TEST_F(SerialApiTest, SetPausedUnknownConnectionId) { 635 TEST_F(SerialApiTest, SetPausedUnknownConnectionId) {
636 RunTest("serial_unittest.js", "testSetPausedUnknownConnectionId"); 636 RunTest("serial_unittest.js", "testSetPausedUnknownConnectionId");
637 } 637 }
638 638
639 TEST_F(SerialApiTest, SendUnknownConnectionId) { 639 TEST_F(SerialApiTest, SendUnknownConnectionId) {
640 RunTest("serial_unittest.js", "testSendUnknownConnectionId"); 640 RunTest("serial_unittest.js", "testSendUnknownConnectionId");
641 } 641 }
642 642
643 } // namespace extensions 643 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/api/serial/data_sender_unittest.cc ('k') | extensions/renderer/api_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698