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

Side by Side Diff: chrome/browser/apps/app_browsertest_util.cc

Issue 2297633002: Add chrome.app.window API tests for items shown in shelf Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pin and Restore Unit Test Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/apps/app_browsertest_util.h" 5 #include "chrome/browser/apps/app_browsertest_util.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 AppWindow* app_window = GetFirstAppWindow(); 287 AppWindow* app_window = GetFirstAppWindow();
288 return app_window; 288 return app_window;
289 } 289 }
290 290
291 void ExperimentalPlatformAppBrowserTest::SetUpCommandLine( 291 void ExperimentalPlatformAppBrowserTest::SetUpCommandLine(
292 base::CommandLine* command_line) { 292 base::CommandLine* command_line) {
293 PlatformAppBrowserTest::SetUpCommandLine(command_line); 293 PlatformAppBrowserTest::SetUpCommandLine(command_line);
294 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); 294 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
295 } 295 }
296 296
297 const gfx::ImageSkia& PlatformAppBrowserTest::GetAppIconImage(
298 AppWindow* app_window) {
299 return app_window->app_icon_image_->image_skia();
300 }
301
297 } // namespace extensions 302 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698