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

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

Issue 62983004: -Wunused-functions for linux, android, chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
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 "apps/launcher.h" 5 #include "apps/launcher.h"
6 #include "apps/shell_window.h" 6 #include "apps/shell_window.h"
7 #include "apps/shell_window_registry.h" 7 #include "apps/shell_window_registry.h"
8 #include "apps/ui/native_app_window.h" 8 #include "apps/ui/native_app_window.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 166 }
167 167
168 private: 168 private:
169 bool auto_cancel_; 169 bool auto_cancel_;
170 int total_page_count_; 170 int total_page_count_;
171 int rendered_page_count_; 171 int rendered_page_count_;
172 scoped_refptr<content::MessageLoopRunner> waiting_runner_; 172 scoped_refptr<content::MessageLoopRunner> waiting_runner_;
173 gfx::Size dialog_size_; 173 gfx::Size dialog_size_;
174 }; 174 };
175 175
176 #if !defined(OS_WIN) 176 #if !defined(OS_CHROMEOS) && !defined(OS_WIN)
177 bool CopyTestDataAndSetCommandLineArg( 177 bool CopyTestDataAndSetCommandLineArg(
178 const base::FilePath& test_data_file, 178 const base::FilePath& test_data_file,
179 const base::FilePath& temp_dir, 179 const base::FilePath& temp_dir,
180 const char* filename) { 180 const char* filename) {
181 base::FilePath path = temp_dir.AppendASCII( 181 base::FilePath path = temp_dir.AppendASCII(
182 filename).NormalizePathSeparators(); 182 filename).NormalizePathSeparators();
183 if (!(base::CopyFile(test_data_file, path))) 183 if (!(base::CopyFile(test_data_file, path)))
184 return false; 184 return false;
185 185
186 CommandLine* command_line = CommandLine::ForCurrentProcess(); 186 CommandLine* command_line = CommandLine::ForCurrentProcess();
187 command_line->AppendArgPath(path); 187 command_line->AppendArgPath(path);
188 return true; 188 return true;
189 } 189 }
190 #endif 190 #endif // !defined(OS_CHROMEOS) && !defined(OS_WIN)
191 191
192 #if !defined(OS_CHROMEOS) 192 #if !defined(OS_CHROMEOS)
193 const char kTestFilePath[] = "platform_apps/launch_files/test.txt"; 193 const char kTestFilePath[] = "platform_apps/launch_files/test.txt";
194 #endif 194 #endif
195 195
196 } // namespace 196 } // namespace
197 197
198 // Tests that CreateShellWindow doesn't crash if you close it straight away. 198 // Tests that CreateShellWindow doesn't crash if you close it straight away.
199 // LauncherPlatformAppBrowserTest relies on this behaviour, but is only run for 199 // LauncherPlatformAppBrowserTest relies on this behaviour, but is only run for
200 // ash, so we test that it works here. 200 // ash, so we test that it works here.
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 false); 1303 false);
1304 ASSERT_TRUE(restart_requested_listener.WaitUntilSatisfied()); 1304 ASSERT_TRUE(restart_requested_listener.WaitUntilSatisfied());
1305 1305
1306 EXPECT_EQ(1, request_restart_call_count()); 1306 EXPECT_EQ(1, request_restart_call_count());
1307 } 1307 }
1308 1308
1309 #endif // defined(OS_CHROMEOS) 1309 #endif // defined(OS_CHROMEOS)
1310 1310
1311 1311
1312 } // namespace extensions 1312 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/chrome_main_delegate.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698