| 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 "chrome/browser/chromeos/gdata/drive_webapps_registry.h" | 5 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/chromeos/gdata/drive_api_parser.h" | |
| 16 #include "chrome/browser/chromeos/gdata/drive_test_util.h" | 15 #include "chrome/browser/chromeos/gdata/drive_test_util.h" |
| 17 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 16 #include "chrome/browser/google_apis/drive_api_parser.h" |
| 17 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
| 18 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
| 19 #include "content/public/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 using base::Value; | 22 using base::Value; |
| 23 using base::DictionaryValue; | 23 using base::DictionaryValue; |
| 24 using base::ListValue; | 24 using base::ListValue; |
| 25 | 25 |
| 26 namespace gdata { | 26 namespace gdata { |
| 27 | 27 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 // Find by secondary MIME type. | 153 // Find by secondary MIME type. |
| 154 ScopedVector<DriveWebAppInfo> secondary_app; | 154 ScopedVector<DriveWebAppInfo> secondary_app; |
| 155 web_apps->GetWebAppsForFile(FilePath(), "text/html", &secondary_app); | 155 web_apps->GetWebAppsForFile(FilePath(), "text/html", &secondary_app); |
| 156 ASSERT_EQ(1U, secondary_app.size()); | 156 ASSERT_EQ(1U, secondary_app.size()); |
| 157 VerifyApp(secondary_app, "abcdefghabcdefghabcdefghabcdefgh", "123456788192", | 157 VerifyApp(secondary_app, "abcdefghabcdefghabcdefghabcdefgh", "123456788192", |
| 158 "Drive app 1", "", false); | 158 "Drive app 1", "", false); |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace gdata | 161 } // namespace gdata |
| OLD | NEW |