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

Side by Side Diff: chrome/browser/extensions/api/browser/browser_apitest.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 <memory>
5 #include <string> 6 #include <string>
6 7
7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/api/browser/browser_api.h" 10 #include "chrome/browser/extensions/api/browser/browser_api.h"
11 #include "chrome/browser/extensions/extension_function_test_utils.h" 11 #include "chrome/browser/extensions/extension_function_test_utils.h"
12 #include "chrome/test/base/in_process_browser_test.h" 12 #include "chrome/test/base/in_process_browser_test.h"
13 #include "extensions/common/test_util.h" 13 #include "extensions/common/test_util.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 namespace utils = extension_function_test_utils; 17 namespace utils = extension_function_test_utils;
(...skipping 15 matching lines...) Expand all
33 base::Value* result = utils::RunFunctionAndReturnSingleResult( 33 base::Value* result = utils::RunFunctionAndReturnSingleResult(
34 function.get(), 34 function.get(),
35 base::StringPrintf("[{\"url\":\"%s\"}]", url.c_str()), 35 base::StringPrintf("[{\"url\":\"%s\"}]", url.c_str()),
36 browser()); 36 browser());
37 37
38 // result is currently NULL on success. 38 // result is currently NULL on success.
39 EXPECT_FALSE(result); 39 EXPECT_FALSE(result);
40 } 40 }
41 41
42 } // namespace extensions 42 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/browser/browser_api.cc ('k') | chrome/browser/extensions/api/browsing_data/browsing_data_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698