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

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

Issue 1849303002: Disable some extensions_unittests on LSAN builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ok - let's push it out to CQ... Created 4 years, 8 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 | « no previous file | extensions/renderer/api/serial/data_sender_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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <queue> 7 #include <queue>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 buffer->DoneWithError(data.size(), error); 119 buffer->DoneWithError(data.size(), error);
120 else 120 else
121 buffer->Done(data.size()); 121 buffer->Done(data.size());
122 } 122 }
123 123
124 scoped_refptr<device::DataSourceSender> sender_; 124 scoped_refptr<device::DataSourceSender> sender_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(DataReceiverTest); 126 DISALLOW_COPY_AND_ASSIGN(DataReceiverTest);
127 }; 127 };
128 128
129 TEST_F(DataReceiverTest, Receive) { 129 // https://crbug.com/599898
130 #if defined(LEAK_SANITIZER)
131 #define MAYBE_Receive DISABLED_Receive
132 #else
133 #define MAYBE_Receive Receive
134 #endif
135 TEST_F(DataReceiverTest, MAYBE_Receive) {
130 data_to_send_.push("a"); 136 data_to_send_.push("a");
131 RunTest("data_receiver_unittest.js", "testReceive"); 137 RunTest("data_receiver_unittest.js", "testReceive");
132 } 138 }
133 139
134 TEST_F(DataReceiverTest, ReceiveError) { 140 // https://crbug.com/599898
141 #if defined(LEAK_SANITIZER)
142 #define MAYBE_ReceiveError DISABLED_ReceiveError
143 #else
144 #define MAYBE_ReceiveError ReceiveError
145 #endif
146 TEST_F(DataReceiverTest, MAYBE_ReceiveError) {
135 error_to_send_.push(1); 147 error_to_send_.push(1);
136 RunTest("data_receiver_unittest.js", "testReceiveError"); 148 RunTest("data_receiver_unittest.js", "testReceiveError");
137 } 149 }
138 150
139 TEST_F(DataReceiverTest, ReceiveDataAndError) { 151 TEST_F(DataReceiverTest, ReceiveDataAndError) {
140 data_to_send_.push("a"); 152 data_to_send_.push("a");
141 data_to_send_.push("b"); 153 data_to_send_.push("b");
142 error_to_send_.push(1); 154 error_to_send_.push(1);
143 RunTest("data_receiver_unittest.js", "testReceiveDataAndError"); 155 RunTest("data_receiver_unittest.js", "testReceiveDataAndError");
144 } 156 }
(...skipping 24 matching lines...) Expand all
169 error_to_send_.push(1); 181 error_to_send_.push(1);
170 error_to_send_.push(3); 182 error_to_send_.push(3);
171 RunTest("data_receiver_unittest.js", "testReceiveDataAndErrorSerialization"); 183 RunTest("data_receiver_unittest.js", "testReceiveDataAndErrorSerialization");
172 } 184 }
173 185
174 TEST_F(DataReceiverTest, SerializeDuringReceive) { 186 TEST_F(DataReceiverTest, SerializeDuringReceive) {
175 data_to_send_.push("a"); 187 data_to_send_.push("a");
176 RunTest("data_receiver_unittest.js", "testSerializeDuringReceive"); 188 RunTest("data_receiver_unittest.js", "testSerializeDuringReceive");
177 } 189 }
178 190
179 TEST_F(DataReceiverTest, SerializeAfterClose) { 191 // https://crbug.com/599898
192 #if defined(LEAK_SANITIZER)
193 #define MAYBE_SerializeAfterClose DISABLED_SerializeAfterClose
194 #else
195 #define MAYBE_SerializeAfterClose SerializeAfterClose
196 #endif
197 TEST_F(DataReceiverTest, MAYBE_SerializeAfterClose) {
180 data_to_send_.push("a"); 198 data_to_send_.push("a");
181 RunTest("data_receiver_unittest.js", "testSerializeAfterClose"); 199 RunTest("data_receiver_unittest.js", "testSerializeAfterClose");
182 } 200 }
183 201
184 } // namespace extensions 202 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | extensions/renderer/api/serial/data_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698