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

Unified Diff: chrome/browser/chromeos/file_manager/file_manager_unittests_browsertests.cc

Issue 48623002: [Files.app] Add an unittest of NavigationListModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_manager/file_manager_unittests_browsertests.cc
diff --git a/chrome/browser/chromeos/file_manager/file_manager_unittests_browsertests.cc b/chrome/browser/chromeos/file_manager/file_manager_unittests_browsertests.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c23ea8df188ec0bb22567c8561d418b870e73be1
--- /dev/null
+++ b/chrome/browser/chromeos/file_manager/file_manager_unittests_browsertests.cc
@@ -0,0 +1,37 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <vector>
+
+#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "chrome/test/base/in_process_browser_test.h"
+#include "chrome/test/base/ui_test_utils.h"
+#include "content/public/browser/render_view_host.h"
hashimoto 2013/11/01 08:15:47 nit: Perhaps, no need to include this?
yoshiki 2013/11/04 18:17:20 Done.
+#include "content/public/browser/web_contents.h"
+#include "content/public/test/browser_test_utils.h"
+#include "grit/webui_resources.h"
hashimoto 2013/11/01 08:15:47 nit: No need to include this?
yoshiki 2013/11/04 18:17:20 Done.
+
+class FileManagerUnitTestsBrowserTest : public InProcessBrowserTest {
+ public:
+ // Runs all test functions in |file|, waiting for them to complete.
+ void RunTest(const base::FilePath& file) {
+ GURL url = ui_test_utils::GetTestUrl(
+ base::FilePath(FILE_PATH_LITERAL("file_manager/unit_tests")), file);
+ ui_test_utils::NavigateToURL(browser(), url);
+
+ content::RenderViewHost* rvh = browser()->tab_strip_model()
+ ->GetActiveWebContents()->GetRenderViewHost();
+ ASSERT_TRUE(rvh);
+
+ const std::vector<int> empty_libraries;
+ EXPECT_TRUE(ExecuteWebUIResourceTest(rvh, empty_libraries));
+ }
+};
+
+IN_PROC_BROWSER_TEST_F(
+ FileManagerUnitTestsBrowserTest, NavigationListModelTest) {
+ RunTest(base::FilePath(
+ FILE_PATH_LITERAL("navigation_list_model_unittest.html")));
+}
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698