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

Side by Side Diff: chrome/browser/chromeos/extensions/default_app_order_unittest.cc

Issue 689553002: Cleanup: Remove unneeded path_service.h includes in base and chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 years, 1 month 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
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/chromeos/extensions/default_app_order.h" 5 #include "chrome/browser/chromeos/extensions/default_app_order.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/path_service.h"
15 #include "base/test/scoped_path_override.h" 14 #include "base/test/scoped_path_override.h"
16 #include "chrome/common/extensions/extension_constants.h" 15 #include "chrome/common/extensions/extension_constants.h"
17 #include "chromeos/chromeos_paths.h" 16 #include "chromeos/chromeos_paths.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 18
20 namespace chromeos { 19 namespace chromeos {
21 20
22 namespace { 21 namespace {
23 22
24 const base::FilePath::CharType kTestFile[] = 23 const base::FilePath::CharType kTestFile[] =
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 std::vector<std::string> apps; 139 std::vector<std::string> apps;
141 default_app_order::Get(&apps); 140 default_app_order::Get(&apps);
142 EXPECT_EQ(default_app_order::kDefaultAppOrderCount + 2, apps.size()); 141 EXPECT_EQ(default_app_order::kDefaultAppOrderCount + 2, apps.size());
143 EXPECT_EQ(std::string("app1"), apps[0]); 142 EXPECT_EQ(std::string("app1"), apps[0]);
144 EXPECT_EQ(extension_misc::kChromeAppId, apps[1]); 143 EXPECT_EQ(extension_misc::kChromeAppId, apps[1]);
145 EXPECT_EQ(std::string("app2"), 144 EXPECT_EQ(std::string("app2"),
146 apps[default_app_order::kDefaultAppOrderCount + 1]); 145 apps[default_app_order::kDefaultAppOrderCount + 1]);
147 } 146 }
148 147
149 } // namespace chromeos 148 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698