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

Side by Side Diff: apps/shell/browser/shell_browsertest.cc

Issue 224723022: Add the first app_shell_browsertest test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "apps/shell/test/app_shell_test.h"
6
7 #include "base/files/file_path.h"
8 #include "base/logging.h"
9 #include "base/path_service.h"
10 #include "chrome/browser/chrome_notification_types.h"
11 #include "content/public/browser/notification_service.h"
12 #include "content/public/test/test_utils.h"
13 #include "extensions/common/extension_paths.h"
14
15 namespace apps {
16
17 IN_PROC_BROWSER_TEST_F(AppShellTest, Basic) {
James Cook 2014/04/08 16:03:49 Please comment what the test is testing.
18 base::FilePath test_data_dir;
19
20 content::WindowedNotificationObserver test_pass_observer(
21 chrome::NOTIFICATION_EXTENSION_TEST_PASSED,
22 content::NotificationService::AllSources());
23
24 PathService::Get(extensions::DIR_TEST_DATA, &test_data_dir);
25 test_data_dir = test_data_dir.AppendASCII("platform_app");
26 LOG(INFO) << "Loading path: " << test_data_dir.value();
James Cook 2014/04/08 16:03:49 Delete this line? I don't think we like adding lo
Yoyo Zhou 2014/04/08 21:55:21 Done.
27 LoadAndLaunchApp(test_data_dir);
28
29 test_pass_observer.Wait();
30 }
31
32 } // namespace apps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698