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

Side by Side Diff: chrome/browser/extensions/convert_web_app_unittest.cc

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/convert_web_app.h" 5 #include "chrome/browser/extensions/convert_web_app.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/memory/scoped_temp_dir.h"
13 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/scoped_temp_dir.h"
14 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "base/version.h" 17 #include "base/version.h"
18 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
19 #include "chrome/common/extensions/extension.h" 19 #include "chrome/common/extensions/extension.h"
20 #include "chrome/common/extensions/extension_icon_set.h" 20 #include "chrome/common/extensions/extension_icon_set.h"
21 #include "chrome/common/extensions/extension_resource.h" 21 #include "chrome/common/extensions/extension_resource.h"
22 #include "chrome/common/extensions/url_pattern.h" 22 #include "chrome/common/extensions/url_pattern.h"
23 #include "chrome/common/web_apps.h" 23 #include "chrome/common/web_apps.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 EXPECT_EQ("1978.12.11.0", extension->version()->GetString()); 165 EXPECT_EQ("1978.12.11.0", extension->version()->GetString());
166 EXPECT_EQ(UTF16ToUTF8(web_app.title), extension->name()); 166 EXPECT_EQ(UTF16ToUTF8(web_app.title), extension->name());
167 EXPECT_EQ("", extension->description()); 167 EXPECT_EQ("", extension->description());
168 EXPECT_EQ(web_app.app_url, extension->GetFullLaunchURL()); 168 EXPECT_EQ(web_app.app_url, extension->GetFullLaunchURL());
169 EXPECT_EQ(0u, extension->icons().map().size()); 169 EXPECT_EQ(0u, extension->icons().map().size());
170 EXPECT_EQ(0u, extension->api_permissions().size()); 170 EXPECT_EQ(0u, extension->api_permissions().size());
171 ASSERT_EQ(1u, extension->web_extent().patterns().size()); 171 ASSERT_EQ(1u, extension->web_extent().patterns().size());
172 EXPECT_EQ("*://aaronboodman.com/*", 172 EXPECT_EQ("*://aaronboodman.com/*",
173 extension->web_extent().patterns()[0].GetAsString()); 173 extension->web_extent().patterns()[0].GetAsString());
174 } 174 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/convert_web_app.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698