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

Side by Side Diff: chrome/browser/extensions/api/identity/experimental_identity_apitest.cc

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia 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 unified diff | Download patch | Annotate | Revision Log
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 "base/strings/string_util.h" 5 #include "base/strings/string_util.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/extensions/api/identity/experimental_identity_api.h" 9 #include "chrome/browser/extensions/api/identity/experimental_identity_api.h"
10 #include "chrome/browser/extensions/api/identity/identity_api.h" 10 #include "chrome/browser/extensions/api/identity/identity_api.h"
(...skipping 19 matching lines...) Expand all
30 using testing::Return; 30 using testing::Return;
31 using testing::ReturnRef; 31 using testing::ReturnRef;
32 32
33 namespace extensions { 33 namespace extensions {
34 34
35 namespace { 35 namespace {
36 36
37 namespace errors = identity_constants; 37 namespace errors = identity_constants;
38 namespace utils = extension_function_test_utils; 38 namespace utils = extension_function_test_utils;
39 39
40 static const char kAccessToken[] = "auth_token"; 40 const char kAccessToken[] = "auth_token";
41 static const char kExtensionId[] = "ext_id";
42 41
43 // This helps us be able to wait until an AsyncExtensionFunction calls 42 // This helps us be able to wait until an AsyncExtensionFunction calls
44 // SendResponse. 43 // SendResponse.
45 class SendResponseDelegate : 44 class SendResponseDelegate :
46 public UIThreadExtensionFunction::DelegateForTests { 45 public UIThreadExtensionFunction::DelegateForTests {
47 public: 46 public:
48 SendResponseDelegate() : should_post_quit_(false) {} 47 SendResponseDelegate() : should_post_quit_(false) {}
49 48
50 virtual ~SendResponseDelegate() {} 49 virtual ~SendResponseDelegate() {}
51 50
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 "https://abcdefghij.chromiumapp.org/callback#test')</script>\"}]", 766 "https://abcdefghij.chromiumapp.org/callback#test')</script>\"}]",
768 browser())); 767 browser()));
769 768
770 std::string url; 769 std::string url;
771 EXPECT_TRUE(value->GetAsString(&url)); 770 EXPECT_TRUE(value->GetAsString(&url));
772 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), 771 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"),
773 url); 772 url);
774 } 773 }
775 774
776 } // namespace extensions 775 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698