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/file_path.h" | 5 #include "base/file_path.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/json/json_file_value_serializer.h" | 7 #include "base/json/json_file_value_serializer.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" | 13 #include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" |
14 #include "chrome/browser/chromeos/gdata/gdata_parser.h" | 14 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" |
15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
16 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 using base::Value; | 19 using base::Value; |
20 using base::DictionaryValue; | 20 using base::DictionaryValue; |
21 using base::ListValue; | 21 using base::ListValue; |
22 | 22 |
23 #define IF_EXPECT_EQ(arg1, arg2) \ | 23 #define IF_EXPECT_EQ(arg1, arg2) \ |
24 EXPECT_EQ(arg1, arg2); \ | 24 EXPECT_EQ(arg1, arg2); \ |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 FilePath mime_file(FILE_PATH_LITERAL("gdata/MimeFile.ext_2")); | 140 FilePath mime_file(FILE_PATH_LITERAL("gdata/MimeFile.ext_2")); |
141 web_apps->GetWebAppsForFile(mime_file, "application/test_type_2", | 141 web_apps->GetWebAppsForFile(mime_file, "application/test_type_2", |
142 &mime_ext_results); | 142 &mime_ext_results); |
143 IF_EXPECT_EQ(2U, mime_ext_results.size()) { | 143 IF_EXPECT_EQ(2U, mime_ext_results.size()) { |
144 EXPECT_TRUE(VerifyApp1(mime_ext_results, true)); | 144 EXPECT_TRUE(VerifyApp1(mime_ext_results, true)); |
145 EXPECT_TRUE(VerifyApp2(mime_ext_results, true)); | 145 EXPECT_TRUE(VerifyApp2(mime_ext_results, true)); |
146 } | 146 } |
147 } | 147 } |
148 | 148 |
149 } // namespace gdata | 149 } // namespace gdata |
OLD | NEW |