summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc')
-rw-r--r--chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc b/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc
index 4f7d06a..ffc007c 100644
--- a/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc
+++ b/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc
@@ -26,7 +26,7 @@ namespace gdata {
// Test about resource parsing.
TEST(DriveAPIParserTest, AboutResourceParser) {
std::string error;
- scoped_ptr<Value> document(test_util::LoadJSONFile("drive/about.json"));
+ scoped_ptr<Value> document = test_util::LoadJSONFile("drive/about.json");
ASSERT_TRUE(document.get());
ASSERT_EQ(Value::TYPE_DICTIONARY, document->GetType());
@@ -42,7 +42,7 @@ TEST(DriveAPIParserTest, AboutResourceParser) {
// Test app list parsing.
TEST(DriveAPIParserTest, AppListParser) {
std::string error;
- scoped_ptr<Value> document(test_util::LoadJSONFile("drive/applist.json"));
+ scoped_ptr<Value> document = test_util::LoadJSONFile("drive/applist.json");
ASSERT_TRUE(document.get());
ASSERT_EQ(Value::TYPE_DICTIONARY, document->GetType());
@@ -123,7 +123,7 @@ TEST(DriveAPIParserTest, AppListParser) {
// Test file list parsing.
TEST(DriveAPIParserTest, FileListParser) {
std::string error;
- scoped_ptr<Value> document(test_util::LoadJSONFile("drive/filelist.json"));
+ scoped_ptr<Value> document = test_util::LoadJSONFile("drive/filelist.json");
ASSERT_TRUE(document.get());
ASSERT_EQ(Value::TYPE_DICTIONARY, document->GetType());
@@ -227,7 +227,8 @@ TEST(DriveAPIParserTest, FileListParser) {
// Test change list parsing.
TEST(DriveAPIParserTest, ChangeListParser) {
std::string error;
- scoped_ptr<Value> document(test_util::LoadJSONFile("drive/changelist.json"));
+ scoped_ptr<Value> document =
+ test_util::LoadJSONFile("drive/changelist.json");
ASSERT_TRUE(document.get());
ASSERT_EQ(Value::TYPE_DICTIONARY, document->GetType());