| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "chrome/browser/chromeos/gdata/gdata_operations.h" | 8 #include "chrome/browser/google_apis/gdata_operations.h" |
| 9 #include "chrome/browser/chromeos/gdata/gdata_test_util.h" | 9 #include "chrome/browser/google_apis/gdata_test_util.h" |
| 10 #include "chrome/browser/chromeos/gdata/operation_runner.h" | 10 #include "chrome/browser/google_apis/operation_runner.h" |
| 11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "content/public/test/test_browser_thread.h" | 13 #include "content/public/test/test_browser_thread.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace gdata { | 16 namespace gdata { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 class JsonParseTestGetDataOperation : public GetDataOperation { | 20 class JsonParseTestGetDataOperation : public GetDataOperation { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 getData->ParseResponse(HTTP_SUCCESS, invalid_json_str); | 173 getData->ParseResponse(HTTP_SUCCESS, invalid_json_str); |
| 174 test_util::RunBlockingPoolTask(); | 174 test_util::RunBlockingPoolTask(); |
| 175 | 175 |
| 176 EXPECT_EQ(GDATA_PARSE_ERROR, error); | 176 EXPECT_EQ(GDATA_PARSE_ERROR, error); |
| 177 ASSERT_TRUE(value.get() == NULL); | 177 ASSERT_TRUE(value.get() == NULL); |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 | 180 |
| 181 } // namespace gdata | 181 } // namespace gdata |
| OLD | NEW |