OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
5 #include <stdint.h> | 6 #include <stdint.h> |
6 | 7 |
7 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
8 #include "base/files/file.h" | 9 #include "base/files/file.h" |
| 10 #include "base/macros.h" |
9 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
10 #include "components/resource_provider/public/cpp/resource_loader.h" | 12 #include "components/resource_provider/public/cpp/resource_loader.h" |
11 #include "components/resource_provider/public/interfaces/resource_provider.mojom
.h" | 13 #include "components/resource_provider/public/interfaces/resource_provider.mojom
.h" |
12 #include "mojo/application/public/cpp/application_delegate.h" | 14 #include "mojo/application/public/cpp/application_delegate.h" |
13 #include "mojo/application/public/cpp/application_impl.h" | 15 #include "mojo/application/public/cpp/application_impl.h" |
14 #include "mojo/application/public/cpp/application_test_base.h" | 16 #include "mojo/application/public/cpp/application_test_base.h" |
15 #include "mojo/application/public/cpp/service_provider_impl.h" | 17 #include "mojo/application/public/cpp/service_provider_impl.h" |
16 #include "mojo/common/common_type_converters.h" | 18 #include "mojo/common/common_type_converters.h" |
17 #include "mojo/platform_handle/platform_handle_functions.h" | 19 #include "mojo/platform_handle/platform_handle_functions.h" |
18 #include "mojo/public/cpp/bindings/array.h" | 20 #include "mojo/public/cpp/bindings/array.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 GetResources(SetWithStrings("sample", "dir/sample2"))); | 90 GetResources(SetWithStrings("sample", "dir/sample2"))); |
89 ASSERT_TRUE(results.count("sample") > 0u); | 91 ASSERT_TRUE(results.count("sample") > 0u); |
90 EXPECT_EQ("test data\n", results["sample"]); | 92 EXPECT_EQ("test data\n", results["sample"]); |
91 | 93 |
92 ASSERT_TRUE(results.count("dir/sample2") > 0u); | 94 ASSERT_TRUE(results.count("dir/sample2") > 0u); |
93 EXPECT_EQ("xxyy\n", results["dir/sample2"]); | 95 EXPECT_EQ("xxyy\n", results["dir/sample2"]); |
94 } | 96 } |
95 | 97 |
96 } // namespace | 98 } // namespace |
97 } // namespace resource_provider | 99 } // namespace resource_provider |
OLD | NEW |