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

Side by Side Diff: chrome/browser/ui/panels/base_panel_browser_test.cc

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/panels/base_panel_browser_test.h" 5 #include "chrome/browser/ui/panels/base_panel_browser_test.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 404 }
405 405
406 // static 406 // static
407 NativePanelTesting* BasePanelBrowserTest::CreateNativePanelTesting( 407 NativePanelTesting* BasePanelBrowserTest::CreateNativePanelTesting(
408 Panel* panel) { 408 Panel* panel) {
409 return panel->native_panel()->CreateNativePanelTesting(); 409 return panel->native_panel()->CreateNativePanelTesting();
410 } 410 }
411 411
412 scoped_refptr<Extension> BasePanelBrowserTest::CreateExtension( 412 scoped_refptr<Extension> BasePanelBrowserTest::CreateExtension(
413 const FilePath::StringType& path, 413 const FilePath::StringType& path,
414 Extension::Location location, 414 extensions::Manifest::Location location,
415 const DictionaryValue& extra_value) { 415 const DictionaryValue& extra_value) {
416 #if defined(OS_WIN) 416 #if defined(OS_WIN)
417 FilePath full_path(FILE_PATH_LITERAL("c:\\")); 417 FilePath full_path(FILE_PATH_LITERAL("c:\\"));
418 #else 418 #else
419 FilePath full_path(FILE_PATH_LITERAL("/")); 419 FilePath full_path(FILE_PATH_LITERAL("/"));
420 #endif 420 #endif
421 full_path = full_path.Append(path); 421 full_path = full_path.Append(path);
422 422
423 scoped_ptr<DictionaryValue> input_value(extra_value.DeepCopy()); 423 scoped_ptr<DictionaryValue> input_value(extra_value.DeepCopy());
424 input_value->SetString(extension_manifest_keys::kVersion, "1.0.0.0"); 424 input_value->SetString(extension_manifest_keys::kVersion, "1.0.0.0");
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 480 }
481 481
482 void BasePanelBrowserTest::MoveMouse(const gfx::Point& position) { 482 void BasePanelBrowserTest::MoveMouse(const gfx::Point& position) {
483 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); 483 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position);
484 } 484 }
485 485
486 std::string BasePanelBrowserTest::MakePanelName(int index) { 486 std::string BasePanelBrowserTest::MakePanelName(int index) {
487 std::string panel_name("Panel"); 487 std::string panel_name("Panel");
488 return panel_name + base::IntToString(index); 488 return panel_name + base::IntToString(index);
489 } 489 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/base_panel_browser_test.h ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698