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

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

Issue 576483003: Make proto enums canonical for ReadState/WriteState/ConnectState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update all path references to generated protobufs. Created 6 years, 3 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_framer.h" 5 #include "extensions/browser/api/cast_channel/cast_framer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "extensions/browser/api/cast_channel/cast_channel.pb.h" 9 #include "extensions/common/api/cast_channel/cast_channel.pb.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 namespace core_api { 13 namespace core_api {
14 namespace cast_channel { 14 namespace cast_channel {
15 class CastFramerTest : public testing::Test { 15 class CastFramerTest : public testing::Test {
16 public: 16 public:
17 CastFramerTest() {} 17 CastFramerTest() {}
18 virtual ~CastFramerTest() {} 18 virtual ~CastFramerTest() {}
19 19
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Send body, expect an error. 129 // Send body, expect an error.
130 scoped_ptr<CastMessage> message; 130 scoped_ptr<CastMessage> message;
131 EXPECT_EQ(NULL, 131 EXPECT_EQ(NULL,
132 framer_->Ingest(framer_->BytesRequested(), &message_length, &error) 132 framer_->Ingest(framer_->BytesRequested(), &message_length, &error)
133 .get()); 133 .get());
134 EXPECT_EQ(cast_channel::CHANNEL_ERROR_INVALID_MESSAGE, error); 134 EXPECT_EQ(cast_channel::CHANNEL_ERROR_INVALID_MESSAGE, error);
135 } 135 }
136 } // namespace cast_channel 136 } // namespace cast_channel
137 } // namespace core_api 137 } // namespace core_api
138 } // namespace extensions 138 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/cast_framer.cc ('k') | extensions/browser/api/cast_channel/cast_message_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698