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

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

Issue 1705009: Changing linux platform for chromeos. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/browser.h" 5 #include "chrome/browser/browser.h"
6 #include "chrome/browser/extensions/extension_browsertest.h" 6 #include "chrome/browser/extensions/extension_browsertest.h"
7 #include "chrome/browser/extensions/extension_error_reporter.h"
7 #include "chrome/browser/extensions/extension_host.h" 8 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/extensions/extension_shelf_model.h" 9 #include "chrome/browser/extensions/extension_shelf_model.h"
9 #include "chrome/browser/extensions/extensions_service.h" 10 #include "chrome/browser/extensions/extensions_service.h"
10 #include "chrome/browser/profile.h" 11 #include "chrome/browser/profile.h"
11 #include "chrome/browser/views/extensions/extension_shelf.h" 12 #include "chrome/browser/views/extensions/extension_shelf.h"
12 #include "chrome/browser/views/frame/browser_view.h" 13 #include "chrome/browser/views/frame/browser_view.h"
13 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/extensions/extension_error_reporter.h"
16 #include "chrome/test/in_process_browser_test.h" 16 #include "chrome/test/in_process_browser_test.h"
17 17
18 namespace { 18 namespace {
19 19
20 // The extension we're using as our test case. 20 // The extension we're using as our test case.
21 const char* kExtensionId = "behllobkkfkfnphdnhnkndlbkcpglgmj"; 21 const char* kExtensionId = "behllobkkfkfnphdnhnkndlbkcpglgmj";
22 22
23 }; // namespace 23 }; // namespace
24 24
25 25
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 model_->MoveToolstripAt(0, 1); 88 model_->MoveToolstripAt(0, 1);
89 EXPECT_EQ(two, model_->ToolstripAt(0).host); 89 EXPECT_EQ(two, model_->ToolstripAt(0).host);
90 EXPECT_EQ(one, model_->ToolstripAt(1).host); 90 EXPECT_EQ(one, model_->ToolstripAt(1).host);
91 EXPECT_EQ(moved_count_, 1); 91 EXPECT_EQ(moved_count_, 1);
92 92
93 model_->RemoveToolstripAt(0); 93 model_->RemoveToolstripAt(0);
94 EXPECT_EQ(one, model_->ToolstripAt(0).host); 94 EXPECT_EQ(one, model_->ToolstripAt(0).host);
95 EXPECT_EQ(1, model_->count()); 95 EXPECT_EQ(1, model_->count());
96 EXPECT_EQ(removed_count_, 1); 96 EXPECT_EQ(removed_count_, 1);
97 } 97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698