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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc

Issue 2314363002: extensions: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Comment addressed Created 4 years, 3 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
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 <vector> 5 #include <vector>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 extensions::ExtensionInstallUI::set_disable_failure_ui_for_tests(); 116 extensions::ExtensionInstallUI::set_disable_failure_ui_for_tests();
117 } 117 }
118 118
119 void SetUpOnMainThread() override { 119 void SetUpOnMainThread() override {
120 ExtensionApiTest::SetUpOnMainThread(); 120 ExtensionApiTest::SetUpOnMainThread();
121 121
122 auto_confirm_install_.reset( 122 auto_confirm_install_.reset(
123 new ScopedTestDialogAutoConfirm(ScopedTestDialogAutoConfirm::ACCEPT)); 123 new ScopedTestDialogAutoConfirm(ScopedTestDialogAutoConfirm::ACCEPT));
124 124
125 ASSERT_TRUE(webstore_install_dir_.CreateUniqueTempDir()); 125 ASSERT_TRUE(webstore_install_dir_.CreateUniqueTempDir());
126 webstore_install_dir_copy_ = webstore_install_dir_.path(); 126 webstore_install_dir_copy_ = webstore_install_dir_.GetPath();
127 WebstoreInstaller::SetDownloadDirectoryForTests( 127 WebstoreInstaller::SetDownloadDirectoryForTests(
128 &webstore_install_dir_copy_); 128 &webstore_install_dir_copy_);
129 } 129 }
130 130
131 protected: 131 protected:
132 // Returns a test server URL, but with host 'www.example.com' so it matches 132 // Returns a test server URL, but with host 'www.example.com' so it matches
133 // the web store app's extent that we set up via command line flags. 133 // the web store app's extent that we set up via command line flags.
134 GURL DoGetTestServerURL(const std::string& path) { 134 GURL DoGetTestServerURL(const std::string& path) {
135 GURL url = embedded_test_server()->GetURL(path); 135 GURL url = embedded_test_server()->GetURL(path);
136 136
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 content::GpuDataManager::GetInstance()->InitializeForTesting( 393 content::GpuDataManager::GetInstance()->InitializeForTesting(
394 json_blacklist, gpu_info); 394 json_blacklist, gpu_info);
395 EXPECT_TRUE(content::GpuDataManager::GetInstance()->IsFeatureBlacklisted( 395 EXPECT_TRUE(content::GpuDataManager::GetInstance()->IsFeatureBlacklisted(
396 gpu::GPU_FEATURE_TYPE_WEBGL)); 396 gpu::GPU_FEATURE_TYPE_WEBGL));
397 397
398 bool webgl_allowed = false; 398 bool webgl_allowed = false;
399 RunTest(webgl_allowed); 399 RunTest(webgl_allowed);
400 } 400 }
401 401
402 } // namespace extensions 402 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698