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

Side by Side Diff: extensions/browser/api/cast_channel/cast_transport_unittest.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
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 "extensions/browser/api/cast_channel/cast_transport.h" 5 #include "extensions/browser/api/cast_channel/cast_transport.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/test/simple_test_tick_clock.h" 10 #include "base/test/simple_test_tick_clock.h"
(...skipping 12 matching lines...) Expand all
23 23
24 using testing::_; 24 using testing::_;
25 using testing::DoAll; 25 using testing::DoAll;
26 using testing::InSequence; 26 using testing::InSequence;
27 using testing::Invoke; 27 using testing::Invoke;
28 using testing::NotNull; 28 using testing::NotNull;
29 using testing::Return; 29 using testing::Return;
30 using testing::WithArg; 30 using testing::WithArg;
31 31
32 namespace extensions { 32 namespace extensions {
33 namespace core_api { 33 namespace api {
34 namespace cast_channel { 34 namespace cast_channel {
35 namespace { 35 namespace {
36 36
37 const int kChannelId = 0; 37 const int kChannelId = 0;
38 38
39 // Mockable placeholder for write completion events. 39 // Mockable placeholder for write completion events.
40 class CompleteHandler { 40 class CompleteHandler {
41 public: 41 public:
42 CompleteHandler() {} 42 CompleteHandler() {}
43 MOCK_METHOD1(Complete, void(int result)); 43 MOCK_METHOD1(Complete, void(int result));
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 MessageFramer::MessageHeader::header_size(), 633 MessageFramer::MessageHeader::header_size(),
634 serialized_message.size() - 634 serialized_message.size() -
635 MessageFramer::MessageHeader::header_size() - 1)), 635 MessageFramer::MessageHeader::header_size() - 1)),
636 Return(serialized_message.size() - 636 Return(serialized_message.size() -
637 MessageFramer::MessageHeader::header_size()))) 637 MessageFramer::MessageHeader::header_size())))
638 .RetiresOnSaturation(); 638 .RetiresOnSaturation();
639 EXPECT_CALL(*delegate_, OnError(CHANNEL_ERROR_INVALID_MESSAGE)); 639 EXPECT_CALL(*delegate_, OnError(CHANNEL_ERROR_INVALID_MESSAGE));
640 transport_->Start(); 640 transport_->Start();
641 } 641 }
642 } // namespace cast_channel 642 } // namespace cast_channel
643 } // namespace core_api 643 } // namespace api
644 } // namespace extensions 644 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_transport.cc ('k') | extensions/browser/api/cast_channel/keep_alive_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698