| 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/ui/ash/app_list/apps_model_builder.h" | 5 #include "chrome/browser/ui/app_list/apps_model_builder.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 12 #include "chrome/browser/extensions/extension_service_unittest.h" | 12 #include "chrome/browser/extensions/extension_service_unittest.h" |
| 13 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/app_list/app_list_item_model.h" | 15 #include "ui/app_list/app_list_item_model.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 "CB", "Ca", "B", "a", "z", "D" | 103 "CB", "Ca", "B", "a", "z", "D" |
| 104 }; | 104 }; |
| 105 const char* kExpected = "a,B,Ca,CB,D,z"; | 105 const char* kExpected = "a,B,Ca,CB,D,z"; |
| 106 | 106 |
| 107 for (size_t i = 0; i < arraysize(kInput); ++i) | 107 for (size_t i = 0; i < arraysize(kInput); ++i) |
| 108 builder.InsertItemByTitle(new TestAppListItemModel(kInput[i])); | 108 builder.InsertItemByTitle(new TestAppListItemModel(kInput[i])); |
| 109 | 109 |
| 110 EXPECT_EQ(kExpected, GetModelContent(model.get())); | 110 EXPECT_EQ(kExpected, GetModelContent(model.get())); |
| 111 } | 111 } |
| 112 | 112 |
| OLD | NEW |