OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "mojo/services/catalog/entry.h" | 5 #include "mojo/services/catalog/entry.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "mojo/shell/public/cpp/capabilities.h" | 12 #include "services/shell/public/cpp/capabilities.h" |
13 #include "mojo/shell/public/cpp/names.h" | 13 #include "services/shell/public/cpp/names.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace catalog { | 16 namespace catalog { |
17 | 17 |
18 class EntryTest : public testing::Test { | 18 class EntryTest : public testing::Test { |
19 public: | 19 public: |
20 EntryTest() {} | 20 EntryTest() {} |
21 ~EntryTest() override {} | 21 ~EntryTest() override {} |
22 | 22 |
23 protected: | 23 protected: |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 EXPECT_EQ(*entry, *reconstituted); | 93 EXPECT_EQ(*entry, *reconstituted); |
94 } | 94 } |
95 | 95 |
96 TEST_F(EntryTest, Malformed) { | 96 TEST_F(EntryTest, Malformed) { |
97 scoped_ptr<base::Value> value = ReadManifest("malformed"); | 97 scoped_ptr<base::Value> value = ReadManifest("malformed"); |
98 EXPECT_FALSE(value.get()); | 98 EXPECT_FALSE(value.get()); |
99 } | 99 } |
100 | 100 |
101 | 101 |
102 } // namespace catalog | 102 } // namespace catalog |
OLD | NEW |