Build fix

Clang built ok but GCC didn't like it.
Add missing header.
Remove extended initializer.

Change-Id: I1abbfdc49c94d8e6a39491a1b1e8c698ee2c0b88
This commit is contained in:
Rintaro Kuroiwa 2014-06-11 13:04:18 -07:00
parent 4a0193a816
commit 8951894f13
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@
#include "mpd/base/bandwidth_estimator.h"
#include <cmath>
#include <cstdlib>
#include "base/logging.h"

View File

@ -131,7 +131,8 @@ class SegmentTemplateTest : public DynamicMpdBuilderTest {
const char kSElementTemplate[] = "<S t=\"%lu\" d=\"%lu\" r=\"%lu\"/>\n";
const char kSElementTemplateWithoutR[] = "<S t=\"%lu\" d=\"%lu\"/>\n";
segment_infos_for_expected_out_.push_back({start_time, duration, repeat});
SegmentInfo s = {start_time, duration, repeat};
segment_infos_for_expected_out_.push_back(s);
if (repeat == 0) {
expected_s_elements_ +=
base::StringPrintf(kSElementTemplateWithoutR, start_time, duration);