Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/ui/app_list/apps_model_builder_unittest.cc

Issue 10871011: Move common app_list delegate code to chrome/browser/ui/app_list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unit test file only in chrome Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/apps_model_builder.cc ('k') | chrome/browser/ui/app_list/chrome_app_list_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698