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/extensions/default_app_order.h" | 5 #include "chrome/browser/chromeos/extensions/default_app_order.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
12 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
| 15 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
14 #include "base/test/scoped_path_override.h" | 17 #include "base/test/scoped_path_override.h" |
15 #include "chrome/common/extensions/extension_constants.h" | 18 #include "chrome/common/extensions/extension_constants.h" |
16 #include "chromeos/chromeos_paths.h" | 19 #include "chromeos/chromeos_paths.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
18 | 21 |
19 namespace chromeos { | 22 namespace chromeos { |
20 | 23 |
21 namespace { | 24 namespace { |
22 | 25 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 std::vector<std::string> apps; | 139 std::vector<std::string> apps; |
137 default_app_order::Get(&apps); | 140 default_app_order::Get(&apps); |
138 EXPECT_EQ(default_app_order::kDefaultAppOrderCount + 2, apps.size()); | 141 EXPECT_EQ(default_app_order::kDefaultAppOrderCount + 2, apps.size()); |
139 EXPECT_EQ(std::string("app1"), apps[0]); | 142 EXPECT_EQ(std::string("app1"), apps[0]); |
140 EXPECT_EQ(extension_misc::kChromeAppId, apps[1]); | 143 EXPECT_EQ(extension_misc::kChromeAppId, apps[1]); |
141 EXPECT_EQ(std::string("app2"), | 144 EXPECT_EQ(std::string("app2"), |
142 apps[default_app_order::kDefaultAppOrderCount + 1]); | 145 apps[default_app_order::kDefaultAppOrderCount + 1]); |
143 } | 146 } |
144 | 147 |
145 } // namespace chromeos | 148 } // namespace chromeos |
OLD | NEW |