OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <iostream> | 11 #include <iostream> |
12 #include <sstream> | 12 #include <sstream> |
13 #include <string> | 13 #include <string> |
14 #include "webrtc/libjingle/xmllite/xmlelement.h" | 14 #include "webrtc/libjingle/xmllite/xmlelement.h" |
15 #include "webrtc/base/common.h" | 15 #include "webrtc/base/common.h" |
16 #include "webrtc/base/gunit.h" | 16 #include "webrtc/base/gunit.h" |
17 #include "webrtc/base/thread.h" | 17 #include "webrtc/base/thread.h" |
18 #include "webrtc/test/testsupport/gtest_disable.h" | |
19 | 18 |
20 using buzz::QName; | 19 using buzz::QName; |
21 using buzz::XmlAttr; | 20 using buzz::XmlAttr; |
22 using buzz::XmlChild; | 21 using buzz::XmlChild; |
23 using buzz::XmlElement; | 22 using buzz::XmlElement; |
24 | 23 |
25 std::ostream& operator<<(std::ostream& os, const QName& name) { | 24 std::ostream& operator<<(std::ostream& os, const QName& name) { |
26 os << name.Namespace() << ":" << name.LocalPart(); | 25 os << name.Namespace() << ":" << name.LocalPart(); |
27 return os; | 26 return os; |
28 } | 27 } |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 threads.push_back( | 249 threads.push_back( |
251 new XmlElementCreatorThread(elem_count, qname)); | 250 new XmlElementCreatorThread(elem_count, qname)); |
252 threads[i]->Start(); | 251 threads[i]->Start(); |
253 } | 252 } |
254 | 253 |
255 for (int i = 0; i < thread_count; i++) { | 254 for (int i = 0; i < thread_count; i++) { |
256 threads[i]->Stop(); | 255 threads[i]->Stop(); |
257 delete threads[i]; | 256 delete threads[i]; |
258 } | 257 } |
259 } | 258 } |
OLD | NEW |