summaryrefslogtreecommitdiffstats
path: root/chromecast/crash/linux/dump_info_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromecast/crash/linux/dump_info_unittest.cc')
-rw-r--r--chromecast/crash/linux/dump_info_unittest.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/chromecast/crash/linux/dump_info_unittest.cc b/chromecast/crash/linux/dump_info_unittest.cc
index fcbd646..c567e8e 100644
--- a/chromecast/crash/linux/dump_info_unittest.cc
+++ b/chromecast/crash/linux/dump_info_unittest.cc
@@ -5,21 +5,12 @@
#include <time.h>
#include "base/values.h"
-#include "chromecast/base/serializers.h"
+#include "chromecast/crash/linux/crash_testing_utils.h"
#include "chromecast/crash/linux/dump_info.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromecast {
-namespace {
-
-scoped_ptr<DumpInfo> CreateDumpInfo(const std::string& json_string) {
- scoped_ptr<base::Value> value(DeserializeFromJson(json_string));
- return make_scoped_ptr(new DumpInfo(value.get()));
-}
-
-} // namespace
-
TEST(DumpInfoTest, EmptyStringIsNotValid) {
scoped_ptr<DumpInfo> dump_info(CreateDumpInfo(""));
ASSERT_FALSE(dump_info->valid());
@@ -202,4 +193,4 @@ TEST(DumpInfoTest, TooManyFieldsIsNotValid) {
ASSERT_FALSE(info->valid());
}
-} // chromecast
+} // namespace chromecast